From b5bf6061d15a2bc2fbd87688a023bfb7e4b0d1a6 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 7 Sep 2023 14:29:31 +0000 Subject: [PATCH] fix: package.json, yarn.lock & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:debug:20170905 - https://snyk.io/vuln/npm:extend:20180424 - https://snyk.io/vuln/npm:hoek:20180212 - https://snyk.io/vuln/npm:ms:20170412 - https://snyk.io/vuln/npm:stringstream:20180511 - https://snyk.io/vuln/npm:tough-cookie:20170905 --- .snyk | 47 ++++++++++++++++++++++++++++++++++++++++++++++- package.json | 6 +++--- yarn.lock | 5 +++++ 3 files changed, 54 insertions(+), 4 deletions(-) diff --git a/.snyk b/.snyk index 542755d..c13a0bf 100644 --- a/.snyk +++ b/.snyk @@ -1,5 +1,5 @@ # Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. -version: v1.7.1 +version: v1.25.1 ignore: {} # patches apply the minimum changes required to fix a vulnerability patch: @@ -10,3 +10,48 @@ patch: patched: '2017-09-28T03:51:10.778Z' - express > serve-static > send > debug: patched: '2017-09-28T03:51:10.778Z' + - babel-cli > chokidar > fsevents > node-pre-gyp > tar-pack > debug: + patched: '2023-09-07T14:29:12.479Z' + id: 'npm:debug:20170905' + path: babel-cli > chokidar > fsevents > node-pre-gyp > tar-pack > debug + 'npm:extend:20180424': + - babel-cli > chokidar > fsevents > node-pre-gyp > request > extend: + patched: '2023-09-07T14:29:12.479Z' + id: 'npm:extend:20180424' + path: babel-cli > chokidar > fsevents > node-pre-gyp > request > extend + 'npm:hoek:20180212': + - babel-cli > chokidar > fsevents > node-pre-gyp > request > hawk > hoek: + patched: '2023-09-07T14:29:12.479Z' + id: 'npm:hoek:20180212' + path: babel-cli > chokidar > fsevents > node-pre-gyp > request > hawk > hoek + - babel-cli > chokidar > fsevents > node-pre-gyp > request > hawk > boom > hoek: + patched: '2023-09-07T14:29:12.479Z' + id: 'npm:hoek:20180212' + path: >- + babel-cli > chokidar > fsevents > node-pre-gyp > request > hawk > boom + > hoek + - babel-cli > chokidar > fsevents > node-pre-gyp > request > hawk > sntp > hoek: + patched: '2023-09-07T14:29:12.479Z' + id: 'npm:hoek:20180212' + path: >- + babel-cli > chokidar > fsevents > node-pre-gyp > request > hawk > sntp + > hoek + 'npm:ms:20170412': + - babel-cli > chokidar > fsevents > node-pre-gyp > tar-pack > debug > ms: + patched: '2023-09-07T14:29:12.479Z' + id: 'npm:ms:20170412' + path: babel-cli > chokidar > fsevents > node-pre-gyp > tar-pack > debug > ms + 'npm:stringstream:20180511': + - babel-cli > chokidar > fsevents > node-pre-gyp > request > stringstream: + patched: '2023-09-07T14:29:12.479Z' + id: 'npm:stringstream:20180511' + path: >- + babel-cli > chokidar > fsevents > node-pre-gyp > request > + stringstream + 'npm:tough-cookie:20170905': + - babel-cli > chokidar > fsevents > node-pre-gyp > request > tough-cookie: + patched: '2023-09-07T14:29:12.479Z' + id: 'npm:tough-cookie:20170905' + path: >- + babel-cli > chokidar > fsevents > node-pre-gyp > request > + tough-cookie diff --git a/package.json b/package.json index 6d9def3..aff1339 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "build": "NODE_ENV=production webpack -p --profile --display-modules --optimize-minimize", "build:dev": "webpack -d", "build:dev:watch": "webpack -d --watch", - "snyk-protect": "snyk protect", - "prepublish": "npm run snyk-protect" + "snyk-protect": "snyk-protect", + "prepublish": "yarn run snyk-protect" }, "author": "Luciano Mammino", "license": "MIT", @@ -28,7 +28,7 @@ "react": "^15.6.1", "react-dom": "^15.6.1", "react-router-dom": "^4.1.2", - "snyk": "^1.41.1" + "@snyk/protect": "latest" }, "devDependencies": { "babel-loader": "^7.1.1", diff --git a/yarn.lock b/yarn.lock index fc4469b..b811ee3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,11 @@ # yarn lockfile v1 +"@snyk/protect@^1.1213.0": + version "1.1213.0" + resolved "https://registry.yarnpkg.com/@snyk/protect/-/protect-1.1213.0.tgz#3a3b4af778410098b6fb926adfef42f0015290d0" + integrity sha512-HSBOa0023s2wnzQ3+Z2pagSmVFjgs/+IBTk9xRBT4zfIx6Qnc9/RbsdAcjvFbl8bDcq3AyF/i/s4MCb/PH899w== + abbrev@1: version "1.1.0" resolved "https://registry.npmjs.org/abbrev/-/abbrev-1.1.0.tgz#d0554c2256636e2f56e7c2e5ad183f859428d81f"