# CVE-2019-16776: Unauthorized File Access in npm CLI before before version 6.13.3

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.41%, higher than 89% of CVEs (2026-12-01)
- Published: 2019-12-13T00:55:16.000Z
- Modified: 2026-09-10T03:49:24.820Z
- Also known as: GHSA-x8qc-rrcw-4r46
- Weaknesses: CWE-22
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- npm cli: from < 6.13.3 before 6.13.3
- npm (npm): before 6.13.3
- npmjs npm: before 6.13.3
- opensuse leap: 15.1
- oracle graalvm: 19.3.0.2
- fedoraproject fedora: 31
- redhat enterprise_linux: 8.0
- redhat enterprise_linux_eus: 8.1

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 5.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:N`

## References

- <https://blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cli> (third-party-advisory, web)
- <https://github.com/npm/cli/security/advisories/GHSA-x8qc-rrcw-4r46> (third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpujan2020.html> (third-party-advisory, web)
- <http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00027.html> (mailing-list, third-party-advisory, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z36UKPO5F3PQ3Q2POMF5LEKXWAH5RUFP/> (vendor-advisory)
- <https://access.redhat.com/errata/RHEA-2020:0330> (third-party-advisory, vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2020:0573> (third-party-advisory, vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2020:0579> (third-party-advisory, vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2020:0597> (third-party-advisory, vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2020:0602> (third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-16776> (advisory)
- <https://github.com/advisories/GHSA-x8qc-rrcw-4r46> (advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Z36UKPO5F3PQ3Q2POMF5LEKXWAH5RUFP> (web)
- <https://www.npmjs.com/advisories/1436> (web)

## Sources

- CVE List: [CVE-2019-16776](https://www.cve.org/CVERecord?id=CVE-2019-16776), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-x8qc-rrcw-4r46](https://github.com/advisories/GHSA-x8qc-rrcw-4r46), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2019-16776](https://nvd.nist.gov/vuln/detail/CVE-2019-16776), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-16776 · Whole record: https://cve.day/CVE-2019-16776.json · Rebuilt by cve.day 2026-11-25T22:57:48.765Z
