From a149f724fbe19f81fc9ffb145dd3b7e857fc701b Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 14 Jun 2017 00:31:10 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:qs:20170213 - https://snyk.io/vuln/npm:ejs:20161130 - https://snyk.io/vuln/npm:ejs:20161130-1 - https://snyk.io/vuln/npm:ejs:20161128 - https://snyk.io/vuln/npm:negotiator:20160616 - https://snyk.io/vuln/npm:ms:20170412 - https://snyk.io/vuln/npm:qs:20170213 - https://snyk.io/vuln/npm:negotiator:20160616 - https://snyk.io/vuln/npm:ms:20170412 - https://snyk.io/vuln/npm:ms:20151024 - https://snyk.io/vuln/npm:jquery:20150627 - https://snyk.io/vuln/npm:jquery:20160529 - https://snyk.io/vuln/npm:marked:20150520 - https://snyk.io/vuln/npm:moment:20161019 - https://snyk.io/vuln/npm:ms:20170412 - https://snyk.io/vuln/npm:mongoose:20160116 - https://snyk.io/vuln/npm:ms:20170412 - https://snyk.io/vuln/npm:semver:20150403 - https://snyk.io/vuln/npm:negotiator:20160616 - https://snyk.io/vuln/npm:st:20140206 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:hawk:20160119 - https://snyk.io/vuln/npm:marked:20170112 - https://snyk.io/vuln/npm:request:20160119 Latest report for guypod/goof: https://snyk.io/test/github/guypod/goof --- .snyk | 14 ++++++++++++++ package.json | 34 +++++++++++++++++++--------------- 2 files changed, 33 insertions(+), 15 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000000..5ab962f59c --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:hawk:20160119': + - tap > codecov.io > request > hawk: + patched: '2017-06-14T00:31:10.811Z' + 'npm:marked:20170112': + - marked: + patched: '2017-06-14T00:31:10.811Z' + 'npm:request:20160119': + - tap > codecov.io > request: + patched: '2017-06-14T00:31:10.811Z' diff --git a/package.json b/package.json index 087260e07a..562a962c5f 100644 --- a/package.json +++ b/package.json @@ -10,32 +10,36 @@ "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" }, "dependencies": { - "body-parser": "1.9.0", + "body-parser": "1.17.1", "cfenv": "^1.0.4", "cookie-parser": "1.3.3", - "ejs": "1.0.0", + "ejs": "2.5.5", "ejs-locals": "1.0.2", - "errorhandler": "1.2.0", - "express": "4.12.4", + "errorhandler": "1.4.3", + "express": "4.15.3", "express-fileupload": "0.0.5", - "humanize-ms": "1.0.1", - "jquery": "^2.2.4", - "marked": "0.3.5", + "humanize-ms": "1.2.1", + "jquery": "^3.0.0", + "marked": "0.3.6", "method-override": "latest", - "moment": "2.15.1", - "mongoose": "4.2.4", + "moment": "2.15.2", + "mongoose": "4.10.2", "morgan": "latest", - "ms": "^0.7.1", - "npmconf": "0.0.24", + "ms": "^2.0.0", + "npmconf": "2.0.9", "optional": "^0.1.3", - "st": "0.2.4", + "st": "1.1.0", "stream-buffers": "^3.0.1", - "tap": "^5.7.0" + "tap": "^5.7.0", + "snyk": "^1.34.3" }, "devDependencies": { "browserify": "^13.1.1" - } + }, + "snyk": true }