From a6888ca44616d98c19fd33d4544a88a5c9a190b4 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 6 Oct 2022 16:14:09 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-ASYNC-2441827 - https://snyk.io/vuln/SNYK-JS-BSON-561052 - https://snyk.io/vuln/SNYK-JS-GETOBJECT-1054932 - https://snyk.io/vuln/SNYK-JS-GRUNT-2635969 - https://snyk.io/vuln/SNYK-JS-GRUNT-2813632 - https://snyk.io/vuln/SNYK-JS-GRUNT-597546 - https://snyk.io/vuln/SNYK-JS-JSYAML-174129 - https://snyk.io/vuln/SNYK-JS-KERBEROS-568900 - https://snyk.io/vuln/SNYK-JS-LODASH-1018905 - https://snyk.io/vuln/SNYK-JS-LODASH-1040724 - https://snyk.io/vuln/SNYK-JS-LODASH-450202 - https://snyk.io/vuln/SNYK-JS-LODASH-567746 - https://snyk.io/vuln/SNYK-JS-LODASH-608086 - https://snyk.io/vuln/SNYK-JS-LODASH-73638 - https://snyk.io/vuln/SNYK-JS-LODASH-73639 - https://snyk.io/vuln/SNYK-JS-MINIMATCH-1019388 - https://snyk.io/vuln/SNYK-JS-MONGODB-473855 - https://snyk.io/vuln/SNYK-JS-MONGOOSE-1086688 - https://snyk.io/vuln/SNYK-JS-MONGOOSE-2961688 - https://snyk.io/vuln/SNYK-JS-MPATH-1577289 - https://snyk.io/vuln/SNYK-JS-MQUERY-1050858 - https://snyk.io/vuln/SNYK-JS-MQUERY-1089718 - https://snyk.io/vuln/SNYK-JS-PASSPORT-2840631 - https://snyk.io/vuln/SNYK-JS-SHELLJS-2332187 - https://snyk.io/vuln/SNYK-JS-TRIMNEWLINES-1298042 - https://snyk.io/vuln/SNYK-JS-UGLIFYJS-1727251 - https://snyk.io/vuln/npm:clean-css:20180306 - https://snyk.io/vuln/npm:cli:20160615 - https://snyk.io/vuln/npm:lodash:20180130 - https://snyk.io/vuln/npm:minimatch:20160620 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 - https://snyk.io/vuln/npm:qs:20140806-1 --- .snyk | 11 +++++++++++ package.json | 30 +++++++++++++++++------------- 2 files changed, 28 insertions(+), 13 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..a30d08c --- /dev/null +++ b/.snyk @@ -0,0 +1,11 @@ +# 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: + 'npm:lodash:20180130': + - scraperjs > cheerio > lodash: + patched: '2022-10-06T16:13:49.687Z' + 'npm:qs:20140806-1': + - grunt-contrib-watch > tiny-lr-fork > qs: + patched: '2022-10-06T16:13:49.687Z' diff --git a/package.json b/package.json index 3e9ea0f..7901257 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "server/server.js", "scripts": { "start": "nodemon server/server.js", - "postinstall": "bower install" + "postinstall": "bower install", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "repository": { "type": "git", @@ -25,22 +27,24 @@ "express": "^4.13.3", "express-partials": "^0.3.0", "express-session": "^1.12.1", - "grunt": "^0.4.5", - "grunt-cli": "^0.1.13", + "grunt": "^1.5.3", + "grunt-cli": "^1.3.0", "grunt-contrib-clean": "^0.7.0", "grunt-contrib-concat": "^0.5.1", - "grunt-contrib-cssmin": "^0.14.0", - "grunt-contrib-jshint": "^0.11.3", - "grunt-contrib-uglify": "^0.11.0", - "grunt-contrib-watch": "^0.6.1", + "grunt-contrib-cssmin": "^2.2.0", + "grunt-contrib-jshint": "^3.1.0", + "grunt-contrib-uglify": "^4.0.1", + "grunt-contrib-watch": "^1.0.1", "grunt-nodemon": "^0.4.1", "grunt-shell": "^1.1.2", "http": "0.0.0", - "kerberos": "0.0.17", - "mongoose": "^4.3.4", + "kerberos": "1.0.0", + "mongoose": "^5.13.15", "morgan": "^1.6.1", - "passport": "~0.1.17", - "passport-local": "~0.1.6", - "scraperjs": "^1.2.0" - } + "passport": "~0.6.0", + "passport-local": "~1.0.0", + "scraperjs": "^1.2.0", + "@snyk/protect": "latest" + }, + "snyk": true }