diff --git a/.snyk b/.snyk new file mode 100644 index 000000000000..0b35be89991b --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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: + - jest > @jest/core > @jest/transform > @babel/core > @babel/helpers > @babel/traverse > @babel/generator > lodash: + patched: '2024-09-18T11:48:22.956Z' + id: SNYK-JS-LODASH-567746 + path: >- + jest > @jest/core > @jest/transform > @babel/core > @babel/helpers > + @babel/traverse > @babel/generator > lodash diff --git a/package.json b/package.json index bbc0fa04e0bb..b14666df617a 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "css-loader": "^4.0.0", "csurf": "^1.11.0", "dotenv": "^8.2.0", - "express": "^4.17.1", + "express": "^4.20.0", "express-rate-limit": "^5.1.3", "flat": "^5.0.0", "github-slugger": "^1.2.1", @@ -62,7 +62,7 @@ "readline-sync": "^1.4.10", "resolve-url-loader": "^3.1.2", "rimraf": "^3.0.0", - "sass": "^1.26.3", + "sass": "^1.79.0", "sass-loader": "^9.0.2", "search-with-your-keyboard": "1.1.0", "semver": "^5.7.1", @@ -71,7 +71,8 @@ "uuid": "^8.3.0", "walk-sync": "^1.1.4", "webpack": "^5.0.0", - "webpack-cli": "^3.3.12" + "webpack-cli": "^3.3.12", + "@snyk/protect": "latest" }, "devDependencies": { "ajv": "^6.11.0", @@ -96,7 +97,7 @@ "husky": "^4.2.1", "image-size": "^0.7.4", "japanese-characters": "^1.1.0", - "jest": "^26.0.1", + "jest": "^28.0.0", "jest-expect-message": "^1.0.2", "jest-github-actions-reporter": "^1.0.2", "jest-puppeteer": "^4.4.0", @@ -139,7 +140,9 @@ "check-deps": "node script/check-deps.js", "prevent-pushes-to-main": "node script/prevent-pushes-to-main.js", "pa11y-ci": "pa11y-ci", - "pa11y-test": "start-server-and-test browser-test-server 4001 pa11y-ci" + "pa11y-test": "start-server-and-test browser-test-server 4001 pa11y-ci", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "engines": { "node": "12 - 14" @@ -157,5 +160,6 @@ "pre-commit": "node script/prevent-translation-commits.js", "pre-push": "npm run prevent-pushes-to-main" } - } + }, + "snyk": true }