CVE-2019-16775: Unauthorized File Access in npm CLI before before version 6.13.3
Vulnerability summary
CVE-2019-16775 is a high (CVSS 7.7) UNIX Symbolic Link (Symlink) Following vulnerability in fedoraproject fedora. EPSS estimates a 3.33% chance of exploitation in the next 30 days, higher than 88.6% 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 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.
CVSS metrics
8 scores · 7 sources · 2 versions- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NDiffers
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NDiffers
- OSV · WolfiEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NDiffers
- OSV · NpmEcosystem advisory · calculated7.7HighCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
- OSV · ChainguardEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NDiffers
EPSS trend
Probability
3.33%
Chance of exploitation in the next 30 days
Percentile
89%
Versus all other CVEs
30-day change
No change 0.00 pp
From 3.33% 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 cause- CWE-61UNIX Symbolic Link (Symlink) FollowingThe product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files.
- CWE-59Improper Link Resolution Before File AccessThe product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
Affected 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
- graalvmEOL19.3.0.2 | 20.3.3 | 21.2.2
Ubuntu1 product
- npmAll versions (No fix recorded)
10 vendors · 86 products
References
19 links- 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
- github.com/npm/cli/security/advisories/GHSA-m6cx-g6qm-p2cxX Refsource CONFIRMThird Party AdvisoryREPORTAdvisoryWEB
Show all 19 references
- blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cliX Refsource MISCThird Party AdvisoryREPORTAdvisoryWEB
- github.com/npm/cliPACKAGE