{"id":"CVE-2019-16776","url":"https://www.cyber-defence.io/tools/cve/CVE-2019-16776","generatedAt":"2026-10-27T22:24:58.938Z","title":"Versions of the npm CLI prior to 6.13.3 are vulnerable to an Arbitrary File Write.","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.","published":"2019-12-13T01:15:11.000Z","lastModified":"2026-06-17T02:22:47.000Z","status":"Modified","sourceIdentifier":"security-advisories@github.com","cvss":{"version":"3.1","score":8.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"},"cwe":["CWE-22"],"affected":["npmjs/npm","opensuse/leap","oracle/graalvm","fedoraproject/fedora","redhat/enterprise linux","redhat/enterprise linux eus"],"epss":{"score":0.03422,"percentile":0.88825,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (3.42%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00027.html","tags":["Mailing List","Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://access.redhat.com/errata/RHEA-2020:0330","tags":["Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://access.redhat.com/errata/RHSA-2020:0573","tags":["Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://access.redhat.com/errata/RHSA-2020:0579","tags":["Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://access.redhat.com/errata/RHSA-2020:0597","tags":["Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://access.redhat.com/errata/RHSA-2020:0602","tags":["Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cli","tags":["Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://github.com/npm/cli/security/advisories/GHSA-x8qc-rrcw-4r46","tags":["Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z36UKPO5F3PQ3Q2POMF5LEKXWAH5RUFP/","source":"security-advisories@github.com"},{"url":"https://www.oracle.com/security-alerts/cpujan2020.html","tags":["Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00027.html","tags":["Mailing List","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://access.redhat.com/errata/RHEA-2020:0330","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://access.redhat.com/errata/RHSA-2020:0573","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://access.redhat.com/errata/RHSA-2020:0579","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://access.redhat.com/errata/RHSA-2020:0597","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://access.redhat.com/errata/RHSA-2020:0602","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cli","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/npm/cli/security/advisories/GHSA-x8qc-rrcw-4r46","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z36UKPO5F3PQ3Q2POMF5LEKXWAH5RUFP/","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.oracle.com/security-alerts/cpujan2020.html","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-16776","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}