From 344bf29735b24e54a3eacf278b5586e02478a1b2 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 00:10:58 +0100 Subject: [PATCH 1/2] fix: examples/with-dotenv/package.json & examples/with-dotenv/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- examples/with-dotenv/package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/with-dotenv/package.json b/examples/with-dotenv/package.json index 893387028c0e2..bc0d56b2a0cbb 100644 --- a/examples/with-dotenv/package.json +++ b/examples/with-dotenv/package.json @@ -4,13 +4,17 @@ "scripts": { "dev": "next", "build": "next build", - "start": "next start" + "start": "next start", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "dotenv-webpack": "1.5.7", "next": "latest", "react": "^16.0.0", - "react-dom": "^16.0.0" + "react-dom": "^16.0.0", + "snyk": "^1.316.1" }, - "license": "ISC" + "license": "ISC", + "snyk": true } From cd9168ede4f8387b034fea702ff136b06b39ba93 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 00:10:59 +0100 Subject: [PATCH 2/2] fix: examples/with-dotenv/package.json & examples/with-dotenv/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- examples/with-dotenv/.snyk | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 examples/with-dotenv/.snyk diff --git a/examples/with-dotenv/.snyk b/examples/with-dotenv/.snyk new file mode 100644 index 0000000000000..92c9536552556 --- /dev/null +++ b/examples/with-dotenv/.snyk @@ -0,0 +1,26 @@ +# 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: + - next > @babel/core > lodash: + patched: '2020-04-30T23:10:56.938Z' + - next > babel-plugin-transform-define > lodash: + patched: '2020-04-30T23:10:56.938Z' + - next > @babel/preset-env > @babel/plugin-transform-block-scoping > lodash: + patched: '2020-04-30T23:10:56.938Z' + - next > styled-jsx > @babel/types > lodash: + patched: '2020-04-30T23:10:56.938Z' + - next > @babel/preset-env > @babel/plugin-transform-classes > @babel/helper-define-map > lodash: + patched: '2020-04-30T23:10:56.938Z' + - next > @babel/preset-env > @babel/plugin-transform-unicode-regex > @babel/helper-create-regexp-features-plugin > @babel/helper-regex > lodash: + patched: '2020-04-30T23:10:56.938Z' + - next > @babel/preset-env > @babel/plugin-transform-exponentiation-operator > @babel/helper-builder-binary-assignment-operator-visitor > @babel/helper-explode-assignable-expression > @babel/traverse > lodash: + patched: '2020-04-30T23:10:56.938Z' + - next > @babel/preset-env > @babel/plugin-transform-exponentiation-operator > @babel/helper-builder-binary-assignment-operator-visitor > @babel/helper-explode-assignable-expression > @babel/traverse > @babel/generator > lodash: + patched: '2020-04-30T23:10:56.938Z' + - next > @babel/preset-env > @babel/plugin-transform-exponentiation-operator > @babel/helper-builder-binary-assignment-operator-visitor > @babel/helper-explode-assignable-expression > @babel/traverse > @babel/helper-split-export-declaration > @babel/types > lodash: + patched: '2020-04-30T23:10:56.938Z' + - next > @babel/preset-env > @babel/plugin-transform-exponentiation-operator > @babel/helper-builder-binary-assignment-operator-visitor > @babel/helper-explode-assignable-expression > @babel/traverse > @babel/helper-function-name > @babel/helper-get-function-arity > @babel/types > lodash: + patched: '2020-04-30T23:10:56.938Z'