Skip to main content
← All vulnerabilities
CVE-2019-16776GHSA-X8QC-RRCW-4R46

Unauthorized File Access in npm CLI before before version 6.13.3

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.13.3
None on Exploit-DB, Metasploit or GitHub

Summary

Versions of the npm CLI prior to 6.13.3 are vulnerable to an Arbitrary File Write. It fails to prevent access to folders outside of the intended node_modules folder through the bin field. A properly constructed entry in the package.json bin field would allow a package publisher to modify and/or gain access to arbitrary files on a user's system when the package is installed. This behavior is still possible through install scripts. This vulnerability bypasses a user using the --ignore-scripts install option.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • npm cli

    fixed in 6.13.3

  • npmnpm

    fixed in 6.13.3

References 10

blog.npmjs.org

GitHub · npm/cli

oracle.com

lists.opensuse.org

lists.fedoraproject.org

access.redhat.com