CVE-2019-16776: Unauthorized File Access in npm CLI before before version 6.13.3
Vulnerability summary
CVE-2019-16776 is a high (CVSS 8.1) vulnerability in fedoraproject fedora. EPSS estimates a 3.42% chance of exploitation in the next 30 days, higher than 88.9% of scored vulnerabilities.
Not severe (CVSS 7.7, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 13 · Related 15Timeline
- 13-12-2019PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 7 sources · 2 versions- CVE.orgCNA7.7HighCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- OSV · DebianEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- OSV · WolfiEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- OSV · NpmEcosystem advisory · calculated7.7HighCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS trend
Probability
3.42%
Chance of exploitation in the next 30 days
Percentile
89%
Versus all other CVEs
30-day change
No change 0.00 pp
From 3.42% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard74 products
- code-serverAll versions (No fix recorded)
- code-server-compatAll versions (No fix recorded)
- commercial-gitlab-rails-ee-assets-19.1All versions (No fix recorded)
- commercial-gitlab-rails-ee-assets-19.2All versions (No fix recorded)
- commercial-gitlab-rails-ee-assets-19.3All versions (No fix recorded)
Npm2 products
- cli≥ < 6.13.3, < 6.13.3
- npm< 6.13.3
Redhat2 products
Wolfi2 products
- code-serverAll versions (No fix recorded)
- code-server-compatAll versions (No fix recorded)
Debian1 product
- npm< 6.13.4+ds-2
Fedoraproject1 product
- fedoraEOL31
Npmjs1 product
- npm< 6.13.3
Opensuse1 product
- leapEOL15.1
Oracle1 product
- graalvm19.3.0.2
Ubuntu1 product
- npmAll versions (No fix recorded)
10 vendors · 86 products
References
17 links- blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cliX Refsource MISCThird Party AdvisoryREPORTAdvisoryWEB
- github.com/npm/cli/security/advisories/GHSA-x8qc-rrcw-4r46X Refsource CONFIRMThird Party AdvisoryREPORTAdvisoryWEB
- lists.opensuse.org/opensuse-security-announce/2020-01/msg00027.htmlVendor AdvisoryX Refsource SUSEMailing ListThird Party AdvisoryAdvisoryWEB
- access.redhat.com/errata/RHEA-2020:0330Vendor AdvisoryX Refsource REDHATThird Party AdvisoryAdvisoryWEB
- access.redhat.com/errata/RHSA-2020:0573Vendor AdvisoryX Refsource REDHATThird Party AdvisoryAdvisoryWEB
- access.redhat.com/errata/RHSA-2020:0579Vendor AdvisoryX Refsource REDHATThird Party AdvisoryAdvisoryWEB
- access.redhat.com/errata/RHSA-2020:0597Vendor AdvisoryX Refsource REDHATThird Party AdvisoryAdvisoryWEB
- access.redhat.com/errata/RHSA-2020:0602Vendor AdvisoryX Refsource REDHATThird Party AdvisoryAdvisoryWEB