From 3ad837063fddfb943a2e8d79f902f64835e7c6cc Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 7 Oct 2022 15:05:10 +0000 Subject: [PATCH] fix: package.json, package-lock.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 48 +++++++++++++++++++++++++++++++++++++++++++++++ package-lock.json | 5 +++++ package.json | 10 +++++++--- 3 files changed, 60 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..fb2e7e0 --- /dev/null +++ b/.snyk @@ -0,0 +1,48 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - lodash: + patched: '2022-10-07T15:03:08.579Z' + - node-sass > lodash: + patched: '2022-10-07T15:03:08.579Z' + - node-sass > sass-graph > lodash: + patched: '2022-10-07T15:03:08.579Z' + - react-scripts > @babel/core > lodash: + patched: '2022-10-07T15:03:08.579Z' + - react-scripts > eslint > lodash: + patched: '2022-10-07T15:03:08.579Z' + - react-scripts > eslint-plugin-flowtype > lodash: + patched: '2022-10-07T15:03:08.579Z' + - react-scripts > eslint-plugin-import > lodash: + patched: '2022-10-07T15:03:08.579Z' + - react-scripts > html-webpack-plugin > lodash: + patched: '2022-10-07T15:03:08.579Z' + - react-scripts > webpack-manifest-plugin > lodash: + patched: '2022-10-07T15:03:08.579Z' + - node-sass > gaze > globule > lodash: + patched: '2022-10-07T15:03:08.579Z' + - react-scripts > @babel/core > @babel/traverse > lodash: + patched: '2022-10-07T15:03:08.579Z' + - react-scripts > babel-preset-react-app > @babel/core > lodash: + patched: '2022-10-07T15:03:08.579Z' + - react-scripts > eslint > inquirer > lodash: + patched: '2022-10-07T15:03:08.579Z' + - react-scripts > eslint > table > lodash: + patched: '2022-10-07T15:03:08.579Z' + - react-scripts > optimize-css-assets-webpack-plugin > last-call-webpack-plugin > lodash: + patched: '2022-10-07T15:03:08.579Z' + - react-scripts > react-dev-utils > inquirer > lodash: + patched: '2022-10-07T15:03:08.579Z' + - react-scripts > webpack-dev-server > http-proxy-middleware > lodash: + patched: '2022-10-07T15:03:08.579Z' + - react-scripts > @svgr/webpack > @svgr/plugin-jsx > @babel/core > lodash: + patched: '2022-10-07T15:03:08.579Z' + - react-scripts > webpack-dev-server > portfinder > async > lodash: + patched: '2022-10-07T15:03:08.579Z' + - react-scripts > @svgr/webpack > @babel/preset-env > @babel/plugin-transform-modules-amd > @babel/helper-module-transforms > lodash: + patched: '2022-10-07T15:03:08.579Z' + - react-scripts > jest-environment-jsdom-fourteen > jsdom > request-promise-native > request-promise-core > lodash: + patched: '2022-10-07T15:03:08.579Z' diff --git a/package-lock.json b/package-lock.json index a57b36a..21842be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1306,6 +1306,11 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz", "integrity": "sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw==" }, + "@snyk/protect": { + "version": "1.1025.0", + "resolved": "https://registry.npmjs.org/@snyk/protect/-/protect-1.1025.0.tgz", + "integrity": "sha512-RK9tY2Aqujv5l9e/5nE4yiTilk8vxyB99VtJJ/6p9TZYhddCVQUUv+PNenhVVO3jkSD8/3gLWbPakIvQsFKynA==" + }, "@svgr/babel-plugin-add-jsx-attribute": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-4.2.0.tgz", diff --git a/package.json b/package.json index 3e42ca8..e91af6c 100644 --- a/package.json +++ b/package.json @@ -11,13 +11,16 @@ "react-router-dom": "5.0.1", "react-scripts": "3.0.1", "reactstrap": "8.0.1", - "terminal-in-react": "^4.3.1" + "terminal-in-react": "^4.3.1", + "@snyk/protect": "latest" }, "name": "largerock", "scripts": { "build": "react-scripts build", "eject": "react-scripts eject", - "start": "react-scripts start" + "start": "react-scripts start", + "prepare": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "browserslist": { "production": [ @@ -30,5 +33,6 @@ "last 1 firefox version", "last 1 safari version" ] - } + }, + "snyk": true }