Skip to main content
← All vulnerabilities
CVE-2019-16775GHSA-M6CX-G6QM-P2CX

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 is possible for packages to create symlinks to files outside of thenode_modules folder through the bin field upon installation. A properly constructed entry in the package.json bin field would allow a package publisher to create a symlink pointing 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 11

lists.opensuse.org

lists.fedoraproject.org

access.redhat.com

oracle.com

GitHub · npm/cli

blog.npmjs.org