CVE-2019-16777 Arbitrary File Overwrite in npm CLI
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebianRed Hat
Description
Versions of the npm CLI prior to 6.13.4 are vulnerable to an Arbitrary File Overwrite. It fails to prevent existing globally-installed binaries to be overwritten by other package installations. For example, if a package was installed globally and created a serve binary, any subsequent installs of packages that also create a serve binary would overwrite the previous serve binary. This behavior is still allowed in local installations and also through install scripts. This vulnerability bypasses a user using the --ignore-scripts install option.
Upgrade path
20 packages: 6 fixed, 9 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/npm(Ubuntu 14.04) | = 1.2.18~dfsg-3; = 1.3.10~dfsg-1; All versions | No fix listed | No fix yet |
| ubuntu/npm(Ubuntu 20.04) | = 5.8.0+ds6-4; = 6.14.4+ds-1ubuntu2; All versions | No fix listed | No fix yet |
| ubuntu/npm(Ubuntu 22.04) | = 7.5.2+ds-2; = 7.24.2+ds-1; = 7.24.2+ds-2; = 8.3.0~ds-1 +5 more | No fix listed | No fix yet |
| ubuntu/npm(Ubuntu 24.04) | = 9.2.0~ds1-1; = 9.2.0~ds1-2; All versions | No fix listed | No fix yet |
| ubuntu/npm(Ubuntu 25.10) | = 9.2.0~ds1-3; All versions | No fix listed | No fix yet |
| ubuntu/npm(Ubuntu 26.04) | = 9.2.0~ds1-3; = 9.2.0~ds2-2; = 9.2.0~ds3-1; All versions | No fix listed | No fix yet |
| ubuntu/npm(Ubuntu 26.10) | = 9.2.0~ds3-1; = 11.16.0+ds2-4; All versions | No fix listed | No fix yet |
| ubuntu/npm(Ubuntu Pro 16.04) | = 1.4.21+ds-2; = 3.5.2-0ubuntu4; = 3.5.2-0ubuntu4.1.16.04.1~esm1; All versions | No fix listed | No fix yet |
| ubuntu/npm(Ubuntu Pro 18.04) | = 3.5.2-0ubuntu4; = 3.5.2-0ubuntu4.1.18.04.1~esm1; All versions | No fix listed | No fix yet |
| debian/npm(Debian 12) | < 6.13.4+ds-2 | 6.13.4+ds-2 | Fixed |
| debian/npm(Debian 13) | < 6.13.4+ds-2 | 6.13.4+ds-2 | Fixed |
| debian/npm(Debian 14) | < 6.13.4+ds-2 | 6.13.4+ds-2 | Fixed |
| npm(npm) | < 6.13.4 | 6.13.4 | Fixed |
| npm cli | >= < 6.13.4, < 6.13.4 | 6.13.4 | Fixed |
| npmjs npm | < 6.13.4 | 6.13.4 | Fixed |
| fedoraproject fedora | = 31 | No fix listed | Versions listed |
| openSUSE leap | = 15.1 | No fix listed | Versions listed |
| oracle graalvm | = 19.3.0.2 | No fix listed | Versions listed |
| redhat enterprise linux | = 8.0 | No fix listed | Versions listed |
| redhat enterprise linux eus | = 8.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm(npm) | < 6.13.4 | 6.13.4 |
| debian/npm(Debian:12) | < 6.13.4+ds-2 | 6.13.4+ds-2 |
| debian/npm(Debian:13) | < 6.13.4+ds-2 | 6.13.4+ds-2 |
| debian/npm(Debian:14) | < 6.13.4+ds-2 | 6.13.4+ds-2 |
| npmjs npm | < 6.13.4 | 6.13.4 |
| openSUSE leap | = 15.1 | No fix listed |
| oracle graalvm | = 19.3.0.2 | No fix listed |
| fedoraproject fedora | = 31 | No fix listed |
| redhat enterprise linux | = 8.0 | No fix listed |
| redhat enterprise linux eus | = 8.1 | No fix listed |
| ubuntu/npm(Ubuntu:24.04) | All versions | No fix listed |
| npm cli | >= < 6.13.4, < 6.13.4 | 6.13.4 |
| ubuntu/npm(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/npm(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/npm(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/npm(Ubuntu:14.04) | All versions | No fix listed |
| ubuntu/npm(Ubuntu:14.04) | = 1.2.18~dfsg-3 | No fix listed |
| ubuntu/npm(Ubuntu:14.04) | = 1.3.10~dfsg-1 | No fix listed |
| ubuntu/npm(Ubuntu:Pro:16.04) | All versions | No fix listed |
| ubuntu/npm(Ubuntu:Pro:16.04) | = 1.4.21+ds-2 | No fix listed |
| ubuntu/npm(Ubuntu:Pro:16.04) | = 3.5.2-0ubuntu4 | No fix listed |
| ubuntu/npm(Ubuntu:Pro:16.04) | = 3.5.2-0ubuntu4.1.16.04.1~esm1 | No fix listed |
| ubuntu/npm(Ubuntu:Pro:18.04) | All versions | No fix listed |
| ubuntu/npm(Ubuntu:Pro:18.04) | = 3.5.2-0ubuntu4 | No fix listed |
| ubuntu/npm(Ubuntu:Pro:18.04) | = 3.5.2-0ubuntu4.1.18.04.1~esm1 | No fix listed |
Show 20 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/npm(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/npm(Ubuntu:20.04) | = 5.8.0+ds6-4 | No fix listed |
| ubuntu/npm(Ubuntu:20.04) | = 6.14.4+ds-1ubuntu2 | No fix listed |
| ubuntu/npm(Ubuntu:22.04) | = 7.5.2+ds-2 | No fix listed |
| ubuntu/npm(Ubuntu:22.04) | = 7.24.2+ds-1 | No fix listed |
| ubuntu/npm(Ubuntu:22.04) | = 7.24.2+ds-2 | No fix listed |
| ubuntu/npm(Ubuntu:22.04) | = 8.3.0~ds-1 | No fix listed |
| ubuntu/npm(Ubuntu:22.04) | = 8.3.0~ds-2 | No fix listed |
| ubuntu/npm(Ubuntu:22.04) | = 8.3.2~ds-1 | No fix listed |
| ubuntu/npm(Ubuntu:22.04) | = 8.5.0~ds-1 | No fix listed |
| ubuntu/npm(Ubuntu:22.04) | = 8.5.1~ds-1 | No fix listed |
| ubuntu/npm(Ubuntu:24.04) | = 9.2.0~ds1-1 | No fix listed |
| ubuntu/npm(Ubuntu:24.04) | = 9.2.0~ds1-2 | No fix listed |
| ubuntu/npm(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/npm(Ubuntu:25.10) | = 9.2.0~ds1-3 | No fix listed |
| ubuntu/npm(Ubuntu:26.10) | = 9.2.0~ds3-1 | No fix listed |
| ubuntu/npm(Ubuntu:26.10) | = 11.16.0+ds2-4 | No fix listed |
| ubuntu/npm(Ubuntu:26.04) | = 9.2.0~ds1-3 | No fix listed |
| ubuntu/npm(Ubuntu:26.04) | = 9.2.0~ds2-2 | No fix listed |
| ubuntu/npm(Ubuntu:26.04) | = 9.2.0~ds3-1 | No fix listed |
References
- github.com issue-tracking third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- blog.npmjs.org issue-tracking third-party-advisory
- github.com vendor-advisory
- www.npmjs.com
- RHEA-2020:0330 third-party-advisory vendor-advisory
- RHSA-2020:0573 third-party-advisory vendor-advisory
- RHSA-2020:0579 third-party-advisory vendor-advisory
- RHSA-2020:0597 third-party-advisory vendor-advisory
- RHSA-2020:0602 third-party-advisory vendor-advisory
- lists.fedoraproject.org
- GLSA-202003-48 third-party-advisory vendor-advisory
- www.oracle.com third-party-advisory
- openSUSE-SU-2020:0059 mailing-list third-party-advisory vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- Debian Security Tracker CVE-2019-16777 vendor-advisory
- FEDORA-2020-595ce5e3cc vendor-advisory
- bugs.debian.org issue-tracking
- github.com product