cli icon indicating copy to clipboard operation
cli copied to clipboard

[QUESTION] https://nvd.nist.gov/vuln/detail/CVE-2020-8116

Open dcherniv opened this issue 6 years ago • 4 comments

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

dcherniv avatar Feb 07 '20 17:02 dcherniv

Does npm pass unsanitized user data into dot-prop? If not, npm's usage of dot-prop is not vulnerable.

ljharb avatar Feb 07 '20 17:02 ljharb

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.

rafael-ladislau avatar Mar 04 '20 23:03 rafael-ladislau

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

flopes89 avatar Mar 05 '20 06:03 flopes89

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.

darcyclarke avatar Jun 02 '21 21:06 darcyclarke