CVE-2019-16775
Unauthorized File Access in npm CLI before before version 6.13.3
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
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.
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)
- 3.3% · top 11% of all CVEs (6 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.7.
Weakness
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
References (11)
- 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
- https://www.oracle.com/security-alerts/cpujan2020.html (opens in a new tab)x_refsource_MISCx_transferred
- https://www.oracle.com/security-alerts/cpuoct2021.html (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/npm/cli/security/advisories/GHSA-m6cx-g6qm-p2cx (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cli (opens in a new tab)x_refsource_MISCx_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)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-m6cx-g6qm-p2cx (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2019-16775)Record last updated .