Home / npm / cli / CVE-2019-16777
CVE-2019-16777: is it exploited, and which versions of npm cli are affected and fixed?
CVE-2019-16777 is a path traversal (reading or writing files outside the intended folder) vulnerability in npm cli. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:09 UTC). Affected: npm before 6.13.4 (GitHub advisory GHSA-4328-8hgf-7wjr). Fixed in 6.13.4 (GitHub advisory GHSA-4328-8hgf-7wjr). Severity: High (7.7, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:09 UTC, CVE record November 19, 2026, 07:16 UTC and NVD November 19, 2026, 08:17 UTC.
What is CVE-2019-16777?
Arbitrary File Overwrite in npm CLI
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.
From the CVE record by GitHub_M, last updated August 5, 2024, 01:24 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| npm | cli | from < 6.13.4 before 6.13.4 | 6.13.4 |
As the CVE record by GitHub_M states it, last updated August 5, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | npm | < 6.13.4 | 6.13.4 | GHSA-4328-8hgf-7wjr |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated August 11, 2022. Summary: npm Vulnerable to Global node_modules Binary Overwrite.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| npmjs | npm | before 6.13.4 | application |
| opensuse | leap | 15.1 | operating system |
| oracle | graalvm | 19.3.0.2 | application |
| fedoraproject | fedora | 31 | operating system |
| redhat | enterprise linux | 8.0 | operating system |
| redhat | enterprise linux eus | 8.1 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 02:22 UTC.
How severe is CVE-2019-16777?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.7 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N | GitHub_M |
| Medium 6.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N | NVD |
| Medium 5.5 | CVSS 2.0 | AV:N/AC:L/Au:S/C:N/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2019-16777 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 2.03% probability of exploitation activity in the next 30 days, percentile 81.7 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
- CWE-269 Improper Privilege Management
Where are the vendor advisories and references?
- https://blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cli x_refsource_MISC
- https://github.com/npm/cli/security/advisories/GHSA-4328-8hgf-7wjr x_refsource_CONFIRM
- https://www.oracle.com/security-alerts/cpujan2020.html x_refsource_MISC
- openSUSE-SU-2020:0059 vendor-advisory, x_refsource_SUSE
- FEDORA-2020-595ce5e3cc vendor-advisory, x_refsource_FEDORA
- RHEA-2020:0330 vendor-advisory, x_refsource_REDHAT
- RHSA-2020:0573 vendor-advisory, x_refsource_REDHAT
- RHSA-2020:0579 vendor-advisory, x_refsource_REDHAT
- RHSA-2020:0597 vendor-advisory, x_refsource_REDHAT
- RHSA-2020:0602 vendor-advisory, x_refsource_REDHAT
- GLSA-202003-48 vendor-advisory, x_refsource_GENTOO
When was it published, and where is the official record?
- Reserved
- September 24, 2019
- Published
- December 13, 2019, 01:00 UTC
- CVE record updated
- August 5, 2024, 01:24 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 02:22 UTC
- Last checked
- CVE list November 19, 2026, 07:16 UTC; NVD November 19, 2026, 08:17 UTC; KEV December 3, 2026, 17:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect cli?
- Jan 23, 2026CVE-2026-0775 npm cli: incorrect permissions on a critical resource
- Jul 7, 2020CVE-2020-15095 npm cli: sensitive information written to log files
- Dec 13, 2019CVE-2019-16776 npm cli: path traversal (reading or writing files outside the intended folder)
- Dec 13, 2019CVE-2019-16775 npm cli: UNIX Symbolic Link (Symlink) Following
Questions about CVE-2019-16777
Is CVE-2019-16777 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:09 UTC. FIRST's EPSS gives it a 2.03% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of npm cli are affected by CVE-2019-16777?
npm before 6.13.4, per the GitHub advisory GHSA-4328-8hgf-7wjr. The tables above give every range the sources list.
Which version fixes CVE-2019-16777?
6.13.4, per the GitHub advisory GHSA-4328-8hgf-7wjr. Check the vendor's advisory before you rely on it.
How severe is CVE-2019-16777?
High (7.7, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2019-16777?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.