CVE-2019-16776Unauthorized File Access in npm CLI before before version 6.13.3
- 7.7HighCVSS base score
- 3.4%Exploitation in 30 daysEPSS · top 11% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
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
ID reserved
By GitHub_M
- 3 months later
· 3 months later
Published
- 5 years later
· 5 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N |
| NVDNVD · Modified | 3.1 | High8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
- EPSS (exploitation in 30 days)
- 3.4% · top 11% of all CVEs (12 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.7.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
References
References10
- https://blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cli (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/npm/cli/security/advisories/GHSA-x8qc-rrcw-4r46 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://www.oracle.com/security-alerts/cpujan2020.html (opens in a new tab)x_refsource_MISCx_transferred
- openSUSE-SU-2020:0059 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- FEDORA-2020-595ce5e3cc (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- RHEA-2020:0330 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2020:0573 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2020:0579 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2020:0597 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2020:0602 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2019-0805 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-x8qc-rrcw-4r46 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2019-16776)Record last updated .