CVE-2019-16777Arbitrary File Overwrite in npm CLI
- 7.7HighCVSS base score
- 2.0%Exploitation in 30 daysEPSS · top 18% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
Versions of the npm CLI prior to 6.13.4 are vulnerable to an Arbitrary File Overwrite. It fails to prevent existing globally-installed binaries to be overwritten by other package installations. For example, if a package was installed globally and created a serve binary, any subsequent installs of packages that also create a serve binary would overwrite the previous serve binary. This behavior is still allowed in local installations and also 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 | Medium6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
- EPSS (exploitation in 30 days)
- 2.0% · top 18% of all CVEs (17 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
References11
- 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-4328-8hgf-7wjr (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
- GLSA-202003-48 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_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-0774 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-4328-8hgf-7wjr (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-16777)Record last updated .