First published: Fri Dec 13 2019(Updated: )
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.
Credit: security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/npm | <6.13.3 | 6.13.3 |
redhat/nodejs | <8.17.0 | 8.17.0 |
redhat/nodejs | <10.18.0 | 10.18.0 |
redhat/nodejs | <12.14.0 | 12.14.0 |
redhat/nodejs | <13.4.0 | 13.4.0 |
Red Hat Enterprise Linux | =8.0 | |
redhat enterprise Linux eus | =8.1 | |
npm | <6.13.3 | |
openSUSE | =15.1 | |
Oracle GraalVM Enterprise Edition | =19.3.0.2 | |
Oracle GraalVM Enterprise Edition | =20.3.3 | |
Oracle GraalVM Enterprise Edition | =21.2.2 | |
Fedora | =31 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2019-16775 is a vulnerability in versions of the npm CLI prior to 6.13.3 that allows for an arbitrary file write.
CVE-2019-16775 allows packages to create symlinks to files outside of the node_modules folder through the bin field upon installation.
CVE-2019-16775 has a severity value of 6.5, which is considered high.
To fix CVE-2019-16775, you should update to npm CLI version 6.13.3 or later.
You can find more information about CVE-2019-16775 in the npm advisory and the Node.js blog post linked in the references.