Description
lib/npm.js in Node Packaged Modules (npm) before 1.3.3 allows local users to overwrite arbitrary files via a symlink attack on temporary files with predictable names that are created when unpacking archives.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | npm | 1.3.10~dfsg-1 | — |
| Debian 13 | npm | 1.3.10~dfsg-1 | — |
| Debian 12 | npm | 1.3.10~dfsg-1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | npm | < 1.3.3 | 1.3.3 | GHSA-v3jv-wrf4-5845 |
References
- 61083 vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=983917
- [oss-security] 20130711 Re: npm uses predictable temporary filenames when unpacking tarballs mailing-list
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=715325
- https://github.com/npm/npm/issues/3635
- https://github.com/npm/npm/commit/f4d31693
- [oss-security] 20130710 npm uses predictable temporary filenames when unpacking tarballs mailing-list
- node-packaged-cve20134116-symlink(87141) vdb-entry