From 28333268096aa58d8349a18334edce9122e20ef1 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 26 Mar 2022 02:37:35 +0000 Subject: [PATCH] fix: package.json, package-lock.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 8 ++++++++ package-lock.json | 11 ++++++++--- package.json | 12 ++++++++---- 3 files changed, 24 insertions(+), 7 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..73e7055 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.22.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - verity-sdk > request-promise-native > request-promise-core > lodash: + patched: '2022-03-26T02:37:28.196Z' diff --git a/package-lock.json b/package-lock.json index ca065e8..3eb4dbd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -83,6 +83,11 @@ "@hapi/hoek": "^9.0.0" } }, + "@snyk/protect": { + "version": "1.883.0", + "resolved": "https://registry.npmjs.org/@snyk/protect/-/protect-1.883.0.tgz", + "integrity": "sha512-N/EqG6P/qNYWOfuZAfGS1d7yGwGY4zV7AvKtgTzdhazDt7G/mRLG6czLSWNWGEFYBiMsYRVPHdc5It3bjhmIGw==" + }, "@types/color-name": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", @@ -1871,9 +1876,9 @@ } }, "lodash": { - "version": "4.17.19", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz", - "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==" + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==" }, "logform": { "version": "2.2.0", diff --git a/package.json b/package.json index 6242c05..81eb3db 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,9 @@ "create-s3-bucket": "node src/scripts/create-s3-bucket.js", "init-db": "node src/scripts/init-db.js", "lint": "standard", - "lint:fix": "standard --fix" + "lint:fix": "standard --fix", + "prepare": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "keywords": [ "REST", @@ -26,14 +28,16 @@ "dynamoose": "^2.3.0", "express": "^4.17.1", "get-parameter-names": "^0.3.0", - "lodash": "^4.17.19", + "lodash": "^4.17.20", "superagent": "^6.0.0", "uuid": "^8.3.1", "verity-sdk": "^0.4.4", "winston": "^3.3.3", - "awesome-qr": "2.0.1-rc.0" + "awesome-qr": "2.0.1-rc.0", + "@snyk/protect": "latest" }, "devDependencies": { "standard": "^14.3.4" - } + }, + "snyk": true }