From 47e7a56413b8f7e4258badb0e8776b29ca35fd99 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 29 Sep 2022 23:54:21 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-AJV-584908 - https://snyk.io/vuln/SNYK-JS-HAWK-2808852 - https://snyk.io/vuln/SNYK-JS-JSYAML-173999 - https://snyk.io/vuln/SNYK-JS-JSYAML-174129 - https://snyk.io/vuln/npm:cookie-signature:20160804 - https://snyk.io/vuln/npm:express:20140912 - https://snyk.io/vuln/npm:fresh:20170908 - https://snyk.io/vuln/npm:mime:20170907 - https://snyk.io/vuln/npm:negotiator:20160616 - https://snyk.io/vuln/npm:qs:20140806 - https://snyk.io/vuln/npm:qs:20140806-1 - https://snyk.io/vuln/npm:qs:20170213 - https://snyk.io/vuln/npm:send:20140912 - https://snyk.io/vuln/npm:send:20151103 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:uglify-js:20151024 --- .snyk | 8 ++++++++ package.json | 16 ++++++++++------ 2 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..243f8d7 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:uglify-js:20151024': + - swig > uglify-js: + patched: '2022-09-29T23:54:18.376Z' diff --git a/package.json b/package.json index a6630fd..1256e0d 100644 --- a/package.json +++ b/package.json @@ -5,21 +5,24 @@ "main": "bin/tipbot", "dependencies": { "irc": "~0.3.6", - "js-yaml": "~3.2.2", + "js-yaml": "~3.13.1", "winston": "~0.8.1", "node-altcoin": "0.1.2", "swig": "^1.3.2", - "express": "3.4.8", + "express": "4.16.0", "node-tipbot-api": "0.0.5", - "request": "2.82.0", + "request": "2.88.0", "node-regexp": "0.1.1", "cheerio": "0.20.0", - "githubhook": "1.1.3" + "githubhook": "1.1.3", + "@snyk/protect": "latest" }, "devDependencies": {}, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "start": "node bin/tipbot" + "start": "node bin/tipbot", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "repository": { "type": "git", @@ -42,5 +45,6 @@ "rpc", "ticker", "bot" - ] + ], + "snyk": true }