Closed felixlberg closed 3 years ago
To get further information about updates to apostrophe core i cloned this repo and checked packages with npm-check-updates
Checking /home/felix/github/apostrophe/package.json
[====================] 67/67 100%
eslint ^6.5.1 → ^7.28.0
eslint-config-apostrophe ^2.0.2 → ^3.4.1
eslint-config-standard ^11.0.0 → ^16.0.3
eslint-plugin-import ^2.18.2 → ^2.23.4
eslint-plugin-node ^6.0.1 → ^11.1.0
eslint-plugin-promise ^3.8.0 → ^5.1.0
eslint-plugin-standard ^3.1.0 → ^4.1.0
mocha ^7.0.0 → ^9.0.0
async ^1.5.2 → ^3.2.0
bless ^3.0.3 → ^4.0.4
bluebird ^3.7.1 → ^3.7.2
chokidar ^3.5.1 → ^3.5.2
cli-progress ^2.1.1 → ^3.9.0
cuid ^1.3.8 → ^2.1.8
deep-get-set ^0.1.1 → ^1.1.1
diff ^4.0.1 → ^5.0.0
express-session ^1.17.0 → ^1.17.2
glob ^5.0.15 → ^7.1.7
he ^0.5.0 → ^1.2.0
html-to-text ^5.1.1 → ^8.0.0
i18n ^0.8.6 → ^0.13.3
less ^3.13.1 → ^4.1.1
mkdirp ^1.0.3 → ^1.0.4
moog-require ^1.1.0 → ^1.3.0
nodemailer ^4.7.0 → ^6.6.1
passport ^0.3.2 → ^0.4.1
path-to-regexp ^1.7.0 → ^6.2.0
qs ^6.9.6 → ^6.10.1
rimraf ^2.7.1 → ^3.0.2
sanitize-html ^1.22.1 → ^2.4.0
sluggo ^0.2.0 → ^0.3.1
syntax-error ^1.3.0 → ^1.4.0
tinycolor2 ^1.4.1 → ^1.4.2
uglify-js ^2.8.29 → ^3.13.9
uploadfs ^1.17.2 → ^1.18.2
xregexp ^2.0.0 → ^5.0.2
yargs ^3.32.0 → ^17.0.1
There seems a common problem with npm update
here. That is the reason I've used npm-check-updates
this has some potential breaking changes cause as you can see above this are mostly major versions to update.
I got additional Information by running npm outdated
async 1.5.2 1.5.2 3.2.0 node_modules/async apostrophe
bless 3.0.3 3.0.3 4.0.4 node_modules/bless apostrophe
cheerio 0.22.0 0.22.0 1.0.0-rc.10 node_modules/cheerio apostrophe
cli-progress 2.1.1 2.1.1 3.9.0 node_modules/cli-progress apostrophe
cuid 1.3.8 1.3.8 2.1.8 node_modules/cuid apostrophe
deep-get-set 0.1.1 0.1.1 1.1.1 node_modules/deep-get-set apostrophe
diff 4.0.2 4.0.2 5.0.0 node_modules/diff apostrophe
eslint 6.8.0 6.8.0 7.28.0 node_modules/eslint apostrophe
eslint-config-apostrophe 2.0.2 2.0.2 3.4.1 node_modules/eslint-config-apostrophe apostrophe
eslint-config-standard 11.0.0 11.0.0 16.0.3 node_modules/eslint-config-standard apostrophe
eslint-plugin-node 6.0.1 6.0.1 11.1.0 node_modules/eslint-plugin-node apostrophe
eslint-plugin-promise 3.8.0 3.8.0 5.1.0 node_modules/eslint-plugin-promise apostrophe
eslint-plugin-standard 3.1.0 3.1.0 5.0.0 node_modules/eslint-plugin-standard apostrophe
glob 5.0.15 5.0.15 7.1.7 node_modules/glob apostrophe
he 0.5.0 0.5.0 1.2.0 node_modules/he apostrophe
html-to-text 5.1.1 5.1.1 8.0.0 node_modules/html-to-text apostrophe
i18n 0.8.6 0.8.6 0.13.3 node_modules/i18n apostrophe
less 3.13.1 3.13.1 4.1.1 node_modules/less apostrophe
mocha 7.2.0 7.2.0 9.0.0 node_modules/mocha apostrophe
nodemailer 4.7.0 4.7.0 6.6.1 node_modules/nodemailer apostrophe
passport 0.3.2 0.3.2 0.4.1 node_modules/passport apostrophe
path-to-regexp 1.8.0 1.8.0 6.2.0 node_modules/path-to-regexp apostrophe
rimraf 2.7.1 2.7.1 3.0.2 node_modules/rimraf apostrophe
sanitize-html 1.27.5 1.27.5 2.4.0 node_modules/sanitize-html apostrophe
sluggo 0.2.0 0.2.0 0.3.1 node_modules/sluggo apostrophe
uglify-js 2.8.29 2.8.29 3.13.9 node_modules/uglify-js apostrophe
xregexp 2.0.0 2.0.0 5.0.2 node_modules/xregexp apostrophe
yargs 3.32.0 3.32.0 17.0.1 node_modules/yargs apostrophe
I'm not an expert with apostrophes core so I can't know updating all this packages would break things in unexpected ways. @boutell maybe you could take a look at this and tell me your opinion about that?
Thanks, @felixlberg. We started some work on this in #3042 but there were some blockers as I recall. We definitely have an eye on it.
Ok thx for the fast reply. If I can help you guys with something, for example updating the dependencies of apostrophe extensions just let me know...
This should all be resolved as of the release on Wednesday, 3.1.0
Environment
Reproduce
you get the following output:
Run
npm audit
gives you the following:So I checked the
package-lock.json
file manually which gave me some additional information:As described here and shown in the output of
npm audit
, nodemailer before version 6.4.16 is vulnerable to command injection.The other vulnerabilities shown in npm audit depend on this 4 dependencies:
Additional information here, here and here
Solution
Apostrophe should update all dependencies to its latest version no minimize vulnerabilities and security risks.