From 30b560886a0cff61a0a6df63afed72c3fa097d5c Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 10:24:21 +0300 Subject: [PATCH 1/2] fix: packages/gatsby-plugin-lodash/package.json & packages/gatsby-plugin-lodash/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- packages/gatsby-plugin-lodash/package.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/gatsby-plugin-lodash/package.json b/packages/gatsby-plugin-lodash/package.json index 2736c413045f2..30fb24be33eb5 100644 --- a/packages/gatsby-plugin-lodash/package.json +++ b/packages/gatsby-plugin-lodash/package.json @@ -10,7 +10,8 @@ "babel-plugin-lodash": "^3.2.11", "babel-runtime": "^6.26.0", "lodash": "^4.17.4", - "lodash-webpack-plugin": "^0.11.4" + "lodash-webpack-plugin": "^0.11.4", + "snyk": "^1.316.1" }, "devDependencies": { "babel-cli": "^6.26.0", @@ -29,7 +30,9 @@ "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-lodash", "scripts": { "build": "babel src --out-dir . --ignore __tests__", - "prepublish": "cross-env NODE_ENV=production npm run build", - "watch": "babel -w src --out-dir . --ignore __tests__" - } + "prepublish": "npm run snyk-protect && cross-env NODE_ENV=production npm run build", + "watch": "babel -w src --out-dir . --ignore __tests__", + "snyk-protect": "snyk protect" + }, + "snyk": true } From 8f831e81195b8e8356cbe16c8a0a3de2f269ea27 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 10:24:22 +0300 Subject: [PATCH 2/2] fix: packages/gatsby-plugin-lodash/package.json & packages/gatsby-plugin-lodash/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- packages/gatsby-plugin-lodash/.snyk | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 packages/gatsby-plugin-lodash/.snyk diff --git a/packages/gatsby-plugin-lodash/.snyk b/packages/gatsby-plugin-lodash/.snyk new file mode 100644 index 0000000000000..087ab20a81d50 --- /dev/null +++ b/packages/gatsby-plugin-lodash/.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: + - lodash: + patched: '2020-05-01T07:23:43.999Z' + - babel-plugin-lodash > lodash: + patched: '2020-05-01T07:23:43.999Z' + - lodash-webpack-plugin > lodash: + patched: '2020-05-01T07:23:43.999Z' + - babel-plugin-lodash > @babel/types > lodash: + patched: '2020-05-01T07:23:43.999Z' + - babel-plugin-lodash > @babel/helper-module-imports > @babel/types > lodash: + patched: '2020-05-01T07:23:43.999Z'