From fcbb4e8f35f9c965ca0c5c83aca6cbe1d04a29db Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 20 Jan 2020 18:26:10 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-JSYAML-173999 - https://snyk.io/vuln/SNYK-JS-JSYAML-174129 - https://snyk.io/vuln/SNYK-JS-LODASH-450202 - https://snyk.io/vuln/npm:adm-zip:20180415 - https://snyk.io/vuln/npm:marked:20170907 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:hawk:20160119 --- .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 0000000000..b282354445 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:hawk:20160119': + - tap > codecov.io > request > hawk: + patched: '2020-01-20T18:26:03.196Z' diff --git a/package.json b/package.json index a63eeb5e30..bc91731e5a 100644 --- a/package.json +++ b/package.json @@ -10,14 +10,16 @@ "scripts": { "start": "node app.js", "build": "browserify -r jquery > public/js/bundle.js", - "cleanup": "mongo express-todo --eval 'db.todos.remove({});'" + "cleanup": "mongo express-todo --eval 'db.todos.remove({});'", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "engines": { "node": "6.14.1" }, "dependencies": { "@snyk/nodejs-runtime-agent": "^1.31.0", - "adm-zip": "0.4.7", + "adm-zip": "0.4.11", "body-parser": "1.9.0", "cfenv": "^1.0.4", "consolidate": "0.14.5", @@ -32,8 +34,8 @@ "file-type": "^8.1.0", "humanize-ms": "1.0.1", "jquery": "^2.2.4", - "lodash": "4.17.4", - "marked": "0.3.5", + "lodash": "4.17.12", + "marked": "0.3.9", "method-override": "latest", "moment": "2.15.1", "mongoose": "4.2.4", @@ -43,9 +45,11 @@ "optional": "^0.1.3", "st": "0.2.4", "stream-buffers": "^3.0.1", - "tap": "^5.7.0" + "tap": "^11.1.3", + "snyk": "^1.278.2" }, "devDependencies": { "browserify": "^13.1.1" - } + }, + "snyk": true }