pnpm 12 global virtual store path traversal lets malicious dependencies write files (CVE-2026-145650, CVSS 10)
pnpm 12
Sponsored
Brought to you byTinkerer Club
The private club for people who own their servers, run their own AI, and pay $0/month for software.
In pnpm 12.0.0 through 12.9.x, the Rust v12 install path copies a dependency's package.json `version` string into the global virtual store slot path without checking it. With `enable-global-virtual-store=true`, a fresh or resolving install (`pnpm install` without an up-to-date lockfile, `pnpm add`, `pnpm update`) of an attacker-controlled tarball or git dependency with a version like `../../../../tmp/x` writes the package's files outside the store. Attackers can use this to overwrite git hooks, `node_modules/.bin` entries or shell profiles and run code on developer machines or CI. The setting is off by default but pnpm turns it on for its own package-manager installs and runtime shims. pnpm 12.10.0 (Oct 6, 2026) fixed it; GHSA-jg5c-8mvg-5wph followed on Nov 20 and CVE-2026-145650 on Dec 6.
Why this severity: CVSS 3.1 10.0 (AV:N/AC:L/PR:N/UI:N/S:C); requires enable-global-virtual-store=true (off by default)
- Started
- Oct 6, 2026
Affected
- pnpm >= 12.0.0, < 12.10.0
Fixed in
- 12.10.0
Timeline3
Advisories4
- GHSA-jg5c-8mvg-5wph: pnpm v12 global-virtual-store escape via dependency manifest version path traversalpnpm · Nov 20, 2026
- pnpm v12.10.0 release notespnpm · Oct 6, 2026
- NVD: CVE-2026-145650NVD · Dec 6, 2026
- pnpm from 12.0.0 before 12.10.0 path traversal via global virtual store versionVulnCheck · Dec 6, 2026
Get an email when a new major security incident drops. No spam, unsubscribe any time.