From c8215fd5cdb8850c1573fb5fb2bf20d387bd0146 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 05:33:31 +0100 Subject: [PATCH 1/2] fix: packages/gatsby-source-wordpress/package.json & packages/gatsby-source-wordpress/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- packages/gatsby-source-wordpress/package.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/gatsby-source-wordpress/package.json b/packages/gatsby-source-wordpress/package.json index 3b87a00d2592d..7a0d90a7d23f2 100644 --- a/packages/gatsby-source-wordpress/package.json +++ b/packages/gatsby-source-wordpress/package.json @@ -18,7 +18,8 @@ "json-stringify-safe": "^5.0.1", "lodash": "^4.17.10", "minimatch": "^3.0.4", - "qs": "^6.4.0" + "qs": "^6.4.0", + "snyk": "^1.316.1" }, "deprecated": false, "devDependencies": { @@ -39,8 +40,10 @@ "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-wordpress", "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", - "prepare": "cross-env NODE_ENV=production npm run build", - "watch": "babel -w src --out-dir . --ignore **/__tests__" + "prepare": "npm run snyk-protect && cross-env NODE_ENV=production npm run build", + "watch": "babel -w src --out-dir . --ignore **/__tests__", + "snyk-protect": "snyk protect" }, - "gitHead": "5bd5aebe066b9875354a81a4b9ed98722731c465" + "gitHead": "5bd5aebe066b9875354a81a4b9ed98722731c465", + "snyk": true } From 6a8a01686febf98da28d3b16304c70f7d3dd8a9d Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 05:33:32 +0100 Subject: [PATCH 2/2] fix: packages/gatsby-source-wordpress/package.json & packages/gatsby-source-wordpress/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- packages/gatsby-source-wordpress/.snyk | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 packages/gatsby-source-wordpress/.snyk diff --git a/packages/gatsby-source-wordpress/.snyk b/packages/gatsby-source-wordpress/.snyk new file mode 100644 index 0000000000000..f2cea1718b0c9 --- /dev/null +++ b/packages/gatsby-source-wordpress/.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-01T04:33:27.004Z' + - deep-map > lodash: + patched: '2020-05-01T04:33:27.004Z' + - deep-map-keys > lodash: + patched: '2020-05-01T04:33:27.004Z'