CVE-2019-16775
Unauthorized File Access in npm CLI before before version 6.13.3
Also known as GHSA-m6cx-g6qm-p2cx
Mitigation
- Upgrade npm to 6.13.3 or later.
Who should check
- Projects that depend on npm package npm (< 6.13.3)
- Anyone running npm cli >= < 6.13.3, < 6.13.3
Vulnerability facts
- Affected
- npm < 6.13.3
- Fixed in
- 6.13.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 7.7 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: Low
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- EPSS
- 2.90% chance of exploitation in 30 days (percentile 88, 2026-11-26)
- CWE
- CWE-61
- Modified
Description
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2019-16775. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2019-16775.md Affected: npm < 6.13.3 Fixed in: 6.13.3 Steps: 1. Search this machine and project for npm (npm), npm cli: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00027.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z36UKPO5F3PQ3Q2POMF5LEKXWAH5RUFP/
- https://access.redhat.com/errata/RHEA-2020:0330
- https://access.redhat.com/errata/RHSA-2020:0573
- https://access.redhat.com/errata/RHSA-2020:0579
- https://access.redhat.com/errata/RHSA-2020:0597
- https://access.redhat.com/errata/RHSA-2020:0602
- https://github.com/npm/cli/security/advisories/GHSA-m6cx-g6qm-p2cx
- https://nvd.nist.gov/vuln/detail/CVE-2019-16775
- https://github.com/advisories/GHSA-m6cx-g6qm-p2cx
Other
- https://www.oracle.com/security-alerts/cpujan2020.html
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cli
- https://github.com/npm/cli
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Z36UKPO5F3PQ3Q2POMF5LEKXWAH5RUFP
- https://www.npmjs.com/advisories/1434
FAQ
Is CVE-2019-16775 being exploited?
There is no confirmed exploitation: CVE-2019-16775 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.90% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2019-16775?
High: CVSS 7.7 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2019-16775?
npm < 6.13.3.
Is there a fix for CVE-2019-16775?
Yes. Fixed in 6.13.3. Upgrade npm to 6.13.3 or later.
How do I check if I'm affected by CVE-2019-16775?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.