CVE-2019-16775
Unauthorized File Access in npm CLI before before version 6.13.3
Reported by github_m · Published December 13, 2019
npm is fixed in 6.13.3 (npm)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| npm | npm | 6.13.3 |
| npm | Arch Linux | 6.13.4-1 |
| npm | npmjs | 6.13.3 |
| cli | npm | 6.13.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| npm | cli | < 6.13.3 |
| chainguard | gitlab-rails-ce-18.6 | * |
| chainguard | gitlab-rails-ce-18.4 | * |
| chainguard | gitlab-rails-ee-fips-17.0 | * |
| chainguard | commercial-gitlab-rails-ee-fips-19.4 | * |
| chainguard | gitlab-rails-ce-19.3 | * |
| chainguard | gitlab-rails-ce-fips-18.7 | * |
| chainguard | gitlab-rails-ce-fips-18.3 | * |
| chainguard | gitlab-rails-ee-fips-17.1 | * |
| chainguard | gitlab-rails-ce-fips-19.4 | * |
| chainguard | gitlab-rails-ce-fips-19.3 | * |
| chainguard | gitlab-rails-ee-17.0 | * |
| chainguard | gitlab-rails-ce-fips-18.6 | * |
| chainguard | gitlab-rails-ce-fips-18.11 | * |
| chainguard | gitlab-rails-ce-18.11 | * |
| chainguard | gitlab-rails-ce-fips-18.10 | * |
| chainguard | gitlab-rails-ee-fips-17.10 | * |
| chainguard | gitlab-rails-ce-fips-18.5 | * |
| chainguard | gitlab-rails-ee-17.11 | * |
| chainguard | gitlab-rails-ce-19.1 | * |
…and 48 more
Timeline
- Dec 13, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 9, 2026 Security Advisory (9 in total, the first dated here)
- Aug 6, 2026 Distribution Patch (5 in total, the first dated here)
- Sep 13, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-16775
vulnetix vdb fixes CVE-2019-16775
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-16775/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- openSUSE-SU-2020:0059 vendor-advisoryx_refsource_SUSE
- FEDORA-2020-595ce5e3cc vendor-advisoryx_refsource_FEDORA
- RHEA-2020:0330 vendor-advisoryx_refsource_REDHAT
- RHSA-2020:0573 vendor-advisoryx_refsource_REDHAT
- RHSA-2020:0579 vendor-advisoryx_refsource_REDHAT
- RHSA-2020:0597 vendor-advisoryx_refsource_REDHAT
- RHSA-2020:0602 vendor-advisoryx_refsource_REDHAT
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2019-16775 advisory
- https://github.com/advisories/GHSA-m6cx-g6qm-p2cx advisory
- https://www.npmjs.com/advisories/1434 url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Z36UKPO5F3PQ3Q2POMF5LEKXWAH5RUFP/ url