npm
CVE-2026-145650
pnpm from 12.0.0 before 12.10.0 Path Traversal via Global Virtual Store Version
- Severity
- Critical 10.0
- Published
- 6 Dec 2026
- Last changed
- 6 Dec 2026
- Added to UpHeron
- 6 Dec 2026
- Fixed in
- 12.10.0
- Weakness
- Path traversal (CWE-22)
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H- Sources
- CVE Program
Description
pnpm from 12.0.0 before 12.10.0 contains a path traversal vulnerability that allows malicious dependencies to write files outside the store via a crafted manifest version string. When enable-global-virtual-store is enabled, fresh or resolving installs build slot paths from the unvalidated version, letting attackers overwrite files such as git hooks for code execution.
Affected software
| Software | Affected versions |
|---|---|
pnpmnpm · osv:npm:pnpm |
|
About pnpm
- Weekly downloads (npm)
- 372,233,371npm, 6 Dec 2026
This is the only vulnerability in pnpm in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-145650