From 33963f6b03e60a44b62c360e970affcd1c542c84 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 26 Jul 2018 15:04:17 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://k8s.snyk.nyc:30443/vuln/npm:braces:20180219 - https://k8s.snyk.nyc:30443/vuln/npm:bson:20180225 - https://k8s.snyk.nyc:30443/vuln/npm:debug:20170905 - https://k8s.snyk.nyc:30443/vuln/npm:dustjs-linkedin:20160819 - https://k8s.snyk.nyc:30443/vuln/npm:ejs:20161128 - https://k8s.snyk.nyc:30443/vuln/npm:ejs:20161130 - https://k8s.snyk.nyc:30443/vuln/npm:ejs:20161130-1 - https://k8s.snyk.nyc:30443/vuln/npm:fresh:20170908 - https://k8s.snyk.nyc:30443/vuln/npm:hoek:20180212 - https://k8s.snyk.nyc:30443/vuln/npm:jquery:20150627 - https://k8s.snyk.nyc:30443/vuln/npm:marked:20150520 - https://k8s.snyk.nyc:30443/vuln/npm:marked:20170112 - https://k8s.snyk.nyc:30443/vuln/npm:marked:20170815 - https://k8s.snyk.nyc:30443/vuln/npm:marked:20170815-1 - https://k8s.snyk.nyc:30443/vuln/npm:marked:20170907 - https://k8s.snyk.nyc:30443/vuln/npm:marked:20180225 - https://k8s.snyk.nyc:30443/vuln/npm:mime:20170907 - https://k8s.snyk.nyc:30443/vuln/npm:moment:20161019 - https://k8s.snyk.nyc:30443/vuln/npm:moment:20170905 - https://k8s.snyk.nyc:30443/vuln/npm:mongoose:20160116 - https://k8s.snyk.nyc:30443/vuln/npm:ms:20151024 - https://k8s.snyk.nyc:30443/vuln/npm:ms:20170412 - https://k8s.snyk.nyc:30443/vuln/npm:negotiator:20160616 - https://k8s.snyk.nyc:30443/vuln/npm:qs:20170213 - https://k8s.snyk.nyc:30443/vuln/npm:semver:20150403 - https://k8s.snyk.nyc:30443/vuln/npm:st:20140206 - https://k8s.snyk.nyc:30443/vuln/npm:st:20171013 - https://k8s.snyk.nyc:30443/vuln/npm:tunnel-agent:20170305 The following vulnerabilities are fixed with a Snyk patch: - https://k8s.snyk.nyc:30443/vuln/npm:hawk:20160119 - https://k8s.snyk.nyc:30443/vuln/npm:request:20160119 --- .snyk | 11 +++++++++++ package.json | 36 ++++++++++++++++++++---------------- 2 files changed, 31 insertions(+), 16 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000000..8d46ca1969 --- /dev/null +++ b/.snyk @@ -0,0 +1,11 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:hawk:20160119': + - tap > codecov.io > request > hawk: + patched: '2018-07-26T15:04:15.925Z' + 'npm:request:20160119': + - tap > codecov.io > request: + patched: '2018-07-26T15:04:15.925Z' diff --git a/package.json b/package.json index f367c6babc..323ed23a24 100644 --- a/package.json +++ b/package.json @@ -10,35 +10,39 @@ "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", + "prepare": "npm run snyk-protect" }, "dependencies": { - "body-parser": "1.9.0", + "body-parser": "1.17.1", "cfenv": "^1.0.4", "cookie-parser": "1.3.3", "consolidate": "0.14.5", - "dustjs-linkedin": "2.5.0", + "dustjs-linkedin": "2.6.0", "dustjs-helpers": "1.5.0", - "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.16.0", "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.17", "method-override": "latest", - "moment": "2.15.1", - "mongoose": "4.2.4", + "moment": "2.19.3", + "mongoose": "4.11.14", "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.2.2", "stream-buffers": "^3.0.1", - "tap": "^5.7.0" + "tap": "^11.1.3", + "snyk": "^1.89.0" }, "devDependencies": { "browserify": "^13.1.1" - } + }, + "snyk": true }