Vulnerability in Npm Cli
CVE-2019-16775
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.7 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N.
EPSS exploit prediction
EPSS: 0.033 (88.6th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 89th percentile — 88.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.033 · newest: 0.033 · change: 0.000
Affected products
- Npm Cli — versions < 6.13.3
- Npmjs Npm
- Oracle Graalvm — versions 19.3.0.2, 20.3.3, 21.2.2
- Fedoraproject Fedora — versions 31
- openSUSE Leap — versions 15.1
- Red Hat Enterprise Linux — versions 8.0
- Red Hat Enterprise Linux Eus — versions 8.1
Weakness classification (CWE)
Public proof-of-concept exploits
References
- lists.opensuse.org/opensuse-security-announce/2020-01/msg00027.html (vendor-advisory, Mailing List, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory)
- access.redhat.com/errata/RHEA-2020:0330 (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2020:0573 (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2020:0579 (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2020:0597 (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2020:0602 (vendor-advisory, Third Party Advisory)
- www.oracle.com/security-alerts/cpujan2020.html (Third Party Advisory)
- www.oracle.com/security-alerts/cpuoct2021.html (Third Party Advisory)
- github.com/npm/cli/security/advisories/GHSA-m6cx-g6qm-p2cx (Third Party Advisory)
Frequently asked questions
- What is CVE-2019-16775?
- CVE-2019-16775 is a high-severity vulnerability in Npm Cli, classified under UNIX Symbolic Link (Symlink) Following. CVSS score: 7.7/10. Published 2019-12-13.
- How severe is CVE-2019-16775?
- High severity. CVSS v3 base score is 7.7 out of 10.
- Is CVE-2019-16775 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.