Description
npm cli Incorrect Permission Assignment Local Privilege Escalation Vulnerability. This vulnerability allows local attackers to escalate privileges on affected installations of npm cli. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.
The specific flaw exists within the handling of modules. The application loads modules from an unsecured location. An attacker can leverage this vulnerability to escalate privileges and execute arbitrary code in the context of a target user. Was ZDI-CAN-25430.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| npm | cli | 10.9.0 | — |
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 | No fix yet | — |
| Debian 13 | npm | No fix yet | — |
| Debian 12 | npm | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | npm | No fix yet | — |
| Ubuntu 26.04 LTS | npm | No fix yet | — |
| Ubuntu 25.10 | npm | No fix yet | — |
| Ubuntu 24.04 LTS | npm | No fix yet | — |
| Ubuntu 22.04 LTS | npm | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | npm | No fix yet | — |
| Ubuntu 14.04 LTS | npm | No fix yet | — |
| Ubuntu Pro 18.04 LTS | npm | No fix yet | — |
| Ubuntu Pro 16.04 LTS | npm | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | code-server | 4.106.3-r4 | — |
| Wolfi rolling | npm | 11.9.0-r0 | — |
| Wolfi rolling | renovate | 43.3.1-r0 | — |
| Wolfi rolling | saf | 1.5.3-r1 | — |
| Wolfi rolling | vitess-23 | 23.0.1-r0 | — |