From 93418fd4208f0cc323d41f138135e0dd81b191b7 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 30 Apr 2020 18:05:13 -0500 Subject: [PATCH 1/2] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 7ee833c..1209f20 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "", "main": "index.js", "scripts": { - "watch": "nodemon ./start.js" + "watch": "nodemon ./start.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "keywords": [], "author": "", @@ -16,9 +18,11 @@ "express-validator": "^6.0.0", "http-auth": "^3.2.3", "mongoose": "^5.7.5", - "pug": "^2.0.0-rc.4" + "pug": "^2.0.0-rc.4", + "snyk": "^1.316.1" }, "devDependencies": { "nodemon": "^1.14.10" - } + }, + "snyk": true } From 5d4a19300778d67a26801127c8d1831ff1a3df36 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 30 Apr 2020 18:05:14 -0500 Subject: [PATCH 2/2] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..c65d469 --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - express-validator > lodash: + patched: '2020-04-30T23:05:05.545Z' + - pug > pug-code-gen > constantinople > babel-types > lodash: + patched: '2020-04-30T23:05:05.545Z' + - pug > pug-filters > constantinople > babel-types > lodash: + patched: '2020-04-30T23:05:05.545Z' + - pug > pug-code-gen > pug-attrs > constantinople > babel-types > lodash: + patched: '2020-04-30T23:05:05.545Z'