From 89162f6f5cde8730b3d4f3b79ede3f4e50ecce7e Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 02:32:16 +0100 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 57041be..908ea5d 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,8 @@ "passport-tequila": "^0.1.9", "pug": "^0.1.0", "serve-favicon": "^2.3.0", - "underscore": "^1.8.3" + "underscore": "^1.8.3", + "snyk": "^1.316.1" }, "devDependencies": { "grunt": "^0.4.5", @@ -38,7 +39,9 @@ "scripts": { "test": "mocha", "start": "node server.js", - "SayHello": "echo \"Pre Commit Says Hello !\" && exit 0" + "SayHello": "echo \"Pre Commit Says Hello !\" && exit 0", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "bugs": { "url": "https://github.com/stefanonepa/epfl-api/issues" @@ -63,5 +66,6 @@ "apidoc": { "title": "API EPFL-LDAP", "url": "https://localhost:3000" - } + }, + "snyk": true } \ No newline at end of file From 1c3c682b367ddda60916e5f49e7875cfefb5a72d Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 02:32:17 +0100 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 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..fad8314 --- /dev/null +++ b/.snyk @@ -0,0 +1,16 @@ +# 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: + - node-cache > lodash: + patched: '2020-05-01T01:32:13.696Z' + - epfl-ldap > node-cache > lodash: + patched: '2020-05-01T01:32:13.696Z' + - pug > pug-code-gen > constantinople > babel-types > lodash: + patched: '2020-05-01T01:32:13.696Z' + - pug > pug-filters > constantinople > babel-types > lodash: + patched: '2020-05-01T01:32:13.696Z' + - pug > pug-code-gen > pug-attrs > constantinople > babel-types > lodash: + patched: '2020-05-01T01:32:13.696Z'