From 774ef591bb65a07dcdc7c6c086673b0ef81c0670 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 30 Apr 2020 21:16:29 -0400 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 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index a4f2355..d4ec01f 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "Starter project for learning gomix", "main": "server.js", "scripts": { - "start": "node server.js" + "start": "node server.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "body-parser": "^1.18.2", @@ -14,9 +16,10 @@ "lowdb": "^0.14.0", "uuid": "^3.0.1", "winston": "^2.3.0", - "http-auth":"^3.2.3", + "http-auth": "^3.2.3", "shortid": "^2.2.8", - "mongoose": "^4.13.1" + "mongoose": "^4.13.1", + "snyk": "^1.316.1" }, "engines": { "node": "8.x" @@ -28,5 +31,6 @@ "node", "gomix", "express" - ] + ], + "snyk": true } From b172fb87df007526db5964606e085d3f3b632351 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 30 Apr 2020 21:16:30 -0400 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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..efdaae3 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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: + - lodash: + patched: '2020-05-01T01:16:26.905Z' + - lowdb > lodash: + patched: '2020-05-01T01:16:26.905Z' + - mongoose > async > lodash: + patched: '2020-05-01T01:16:26.905Z'