From 59d09359faf0e92d3a23b26cc7f4c74f9b4c30b7 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 16 Apr 2024 00:15:06 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-LODASH-6139239 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 18 ++++++++++++++++++ package.json | 20 ++++++++++++-------- 2 files changed, 30 insertions(+), 8 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..8603bd0 --- /dev/null +++ b/.snyk @@ -0,0 +1,18 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - murmur-client > libp2p-websocket-star > async > lodash: + patched: '2024-04-16T00:15:03.040Z' + id: SNYK-JS-LODASH-567746 + path: murmur-client > libp2p-websocket-star > async > lodash + - status-js-api > web3 > web3-shh > web3-utils > lodash: + patched: '2024-04-16T00:15:03.040Z' + id: SNYK-JS-LODASH-567746 + path: status-js-api > web3 > web3-shh > web3-utils > lodash + - status-js-api > web3 > web3-eth-personal > web3-core-helpers > lodash: + patched: '2024-04-16T00:15:03.040Z' + id: SNYK-JS-LODASH-567746 + path: status-js-api > web3 > web3-eth-personal > web3-core-helpers > lodash diff --git a/package.json b/package.json index ea2bc0d..3548583 100644 --- a/package.json +++ b/package.json @@ -13,12 +13,12 @@ "@types/react-dom": "^16.0.11", "autoscroll-react": "^3.2.0", "emoji-mart": "^2.8.1", - "eth-keyring-controller": "^3.3.1", + "eth-keyring-controller": "^9.0.0", "formik": "^1.3.1", - "ipfs": "^0.33.1", - "lodash": "^4.17.11", + "ipfs": "^0.66.1", + "lodash": "^4.17.17", "memoize-one": "^4.0.3", - "murmur-client": "^0.3.4", + "murmur-client": "^0.3.0", "pull-file-reader": "^1.0.2", "react": "^16.7.0", "react-dom": "^16.7.0", @@ -26,21 +26,24 @@ "react-hot-loader": "^4.3.4", "react-jazzicon": "^0.1.3", "react-linkify": "^0.2.2", - "react-scripts": "2.1.3", + "react-scripts": "4.0.0", "react-spinners": "^0.4.7", "react-spotify-player": "^1.0.4", "react-syntax-highlighter": "^10.0.1", "react-youtube": "^7.8.0", "status-js-api": "^1.2.6", "typescript": "^3.2.4", - "uuid": "^3.3.2" + "uuid": "^3.3.2", + "@snyk/protect": "latest" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "build-opt": "react-scripts --max_old_space_size=4096 build", "test": "react-scripts test", - "eject": "react-scripts eject" + "eject": "react-scripts eject", + "prepare": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "eslintConfig": { "extends": "react-app" @@ -50,5 +53,6 @@ "not dead", "not ie <= 11", "not op_mini all" - ] + ], + "snyk": true }