VDB
CVE-2019-16776
CVE-2019-16776
PUBLISHED
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.
EPSS 1.23% · 79.5th percentile
Risk Scores
EPSS Score
1.23%
79.5th percentile
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Ubuntu:22.04:LTS | npm | 0, 7.24.2+ds-1, 7.24.2+ds-2 |
| Ubuntu:20.04:LTS | npm | 5.8.0+ds6-4, *, 0 |
| Ubuntu:24.04:LTS | npm | 9.2.0~ds1-1, 9.2.0~ds1-2, 0 |
| Ubuntu:Pro:18.04:LTS | npm | 0, 3.5.2-0ubuntu4.1.18.04.1~esm1, 3.5.2-0ubuntu4 |
| Ubuntu:25.10 | npm | 0, * |
| Ubuntu:Pro:16.04:LTS | npm | 0, 3.5.2-0ubuntu4.1.16.04.1~esm1, 3.5.2-0ubuntu4 |
| Ubuntu:14.04:LTS | npm | 1.2.18~dfsg-3, 1.3.10~dfsg-1, 0 |
Timeline
- Dec 13, 2019 CVE Published
- Apr 14, 2021 EPSS Score
- Jun 23, 2021 EPSS Score
- Oct 26, 2021 EPSS Score
- Dec 27, 2021 EPSS Score
- Jan 6, 2022 EPSS Score
- Feb 4, 2022 EPSS Score
- Apr 1, 2022 EPSS Score
- May 1, 2022 EPSS Score
- Jul 3, 2022 EPSS Score
- Sep 4, 2022 EPSS Score
- Jan 8, 2023 EPSS Score
References
- https://ubuntu.com/security/CVE-2019-16776 third-party-advisory
- https://github.com/npm/cli/security/advisories/GHSA-x8qc-rrcw-4r46 third-party-advisory
- https://blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cli third-party-advisory
- https://www.cve.org/CVERecord?id=CVE-2019-16776 third-party-advisory