Local Privilege Escalation in npm
Affected versions of npm use predictable temporary file names during archive unpacking. If an attacker can create a symbolic link at the location of one of these temporary file names, the attacker can arbitrarily write to any file that the user which owns the npm process has permission to write to, potentially resulting in local privilege escalation.
Recommendation
Update to version 1.3.3 or later.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | npm | < 1.3.3 | 1.3.3 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2013-4116
- https://github.com/npm/npm/issues/3635
- https://github.com/npm/npm/commit/f4d31693
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=715325
- https://bugzilla.redhat.com/show_bug.cgi?id=983917
- https://exchange.xforce.ibmcloud.com/vulnerabilities/87141
- https://github.com/npm/npm
- https://www.npmjs.com/advisories/152
- http://www.openwall.com/lists/oss-security/2013/07/10/17
- http://www.openwall.com/lists/oss-security/2013/07/11/9
- http://www.securityfocus.com/bid/61083
- Weakness (CWE)
CWE-59- Platform
- npm
- Package
npm- Disclosed
- 01.09.2020
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-v3jv-wrf4-5845 - CC BY 4.0
Vulnerability history: npm
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 8
- First → latest
- 07.2018 06.2022
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 6
- Medium 1
- Low 1
Disclosures per year
- 2018: 1
- 2019: 3
- 2020: 2
- 2021: 0
- 2022: 2
- 2023: 0
- 2024: 0
- 2025: 0
- 2026: 0
-
Local Privilege Escalation in npm this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.