[QUESTION] https://nvd.nist.gov/vuln/detail/CVE-2020-8116
What / Why
npm appears to be using older version of dot-prop which is vulnerable to prototype pollution.
Where
npm cli in package.json
/usr/local/lib/node_modules/npm # npm --version
6.13.7
/usr/local/lib/node_modules/npm # npm ls dot-prop
[email protected] /usr/local/lib/node_modules/npm
`-- [email protected]
`-- [email protected]
`-- [email protected]
/usr/local/lib/node_modules/npm #
Who
@npm-sre-readonly @npm-sre-write
References
https://nvd.nist.gov/vuln/detail/CVE-2020-8116
Does npm pass unsanitized user data into dot-prop? If not, npm's usage of dot-prop is not vulnerable.
I'm maintaining a FedRamp environment, and my last scan had this vulnerability marked as critical. I'm trying to figure out how it can be fixed. I realized the latest NPM version has npm-cli and libnpx using [email protected]. I've changed their package.json to make them use the latest update-notifier version. The only test failing is the npm/cli "test/tap/00-verify-no-scoped.js". Is it still an issue? Otherwise, I can try to submit a pull request.
This was blocking deployment of our application because of anchore scans. What we now do is just rip out npm from the production release image:
RUN npm uninstall npm -g
npm v6 is no longer in active development; We will continue to push security releases to v6 at our team's discretion as-per our Support Policy.
If your bug is preproducible on v7, please re-file this issue using our new issue template.
If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo
Closing: This is an automated message.