# pnpm 12 global virtual store path traversal lets malicious dependencies write files (CVE-2026-145650, CVSS 10) · pwn.watch > 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. Page: https://pwn.watch/i/pnpm-12-global-virtual-store-path-traversal-cve-2026-145650 · generated 2026-12-06T02:13:22.627Z ## Status - Severity: critical · status: live · patch: patched - Product: pnpm 12 - Started: 2026-10-06 - CVEs: CVE-2026-145650 - Affected: pnpm >= 12.0.0, < 12.10.0 - Fixed in: 12.10.0 ## Follow this incident - RSS (one item per update): https://pwn.watch/i/pnpm-12-global-virtual-store-path-traversal-cve-2026-145650/feed.xml - JSON Feed: https://pwn.watch/i/pnpm-12-global-virtual-store-path-traversal-cve-2026-145650/feed.json - Full data (timeline, sources, posts, agentBrief): https://pwn.watch/i/pnpm-12-global-virtual-store-path-traversal-cve-2026-145650.json - This file: https://pwn.watch/i/pnpm-12-global-virtual-store-path-traversal-cve-2026-145650/llms.txt ## Updates (newest first) - 2026-12-06: CVE-2026-145650 is published (VulnCheck CNA, CVSS 10.0, CWE-22). (https://nvd.nist.gov/vuln/detail/CVE-2026-145650) - 2026-11-20: pnpm publishes GHSA-jg5c-8mvg-5wph (CVSS 10.0), credited to Zhixi "Jace" Sun. (https://github.com/pnpm/pnpm/security/advisories/GHSA-jg5c-8mvg-5wph) - 2026-10-06: pnpm 12.10.0 ships a security fix that stops dependency versions with path traversal from writing files outside the global virtual store. (https://github.com/pnpm/pnpm/releases/tag/v12.10.0) ## Fix brief # Security brief: pnpm 12 global virtual store path traversal lets malicious dependencies write files (CVE-2026-145650, CVSS 10) Source: https://pwn.watch/i/pnpm-12-global-virtual-store-path-traversal-cve-2026-145650 · status: live · severity: critical · updated Dec 6, 2026, 01:50 UTC ## Patch status **PATCHED: fixed releases exist. Upgrade to a fixed version.** ## What it is 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. Severity detail: CVSS 3.1 10.0 (AV:N/AC:L/PR:N/UI:N/S:C); requires enable-global-virtual-store=true (off by default) - Product: pnpm 12 - CVE / advisory ids: CVE-2026-145650 ## Affected versions - pnpm >= 12.0.0, < 12.10.0 ## Check whether you're affected No generic command applies (the product is a hosted service, appliance or desktop app). Check the installed version in its admin UI / About screen and compare with the versions above. ## Fix Upgrade to one of these fixed versions (or later on the same branch): - 12.10.0 After upgrading, re-run the checks above and redeploy/restart the affected services. ## Specific notes Run `pnpm --version`. If it is 12.0.0 to 12.9.x, upgrade to pnpm 12.10.0 or later (`corepack use pnpm@latest` or update the `packageManager` field), including in CI images. Until then, keep `enable-global-virtual-store` off and use `pnpm install --frozen-lockfile` in CI. The advisory lists only pnpm 12.0.0 to 12.9.x (the Rust v12 install path) as affected. ## Latest updates - Dec 6, 2026: CVE-2026-145650 is published (VulnCheck CNA, CVSS 10.0, CWE-22). - Nov 20, 2026: pnpm publishes GHSA-jg5c-8mvg-5wph (CVSS 10.0), credited to Zhixi "Jace" Sun. - Oct 6, 2026: pnpm 12.10.0 ships a security fix that stops dependency versions with path traversal from writing files outside the global virtual store. ## Advisories - [GHSA-jg5c-8mvg-5wph: pnpm v12 global-virtual-store escape via dependency manifest version path traversal](https://github.com/pnpm/pnpm/security/advisories/GHSA-jg5c-8mvg-5wph) (pnpm) - [pnpm v12.10.0 release notes](https://github.com/pnpm/pnpm/releases/tag/v12.10.0) (pnpm) - [NVD: CVE-2026-145650](https://nvd.nist.gov/vuln/detail/CVE-2026-145650) (NVD) - [pnpm from 12.0.0 before 12.10.0 path traversal via global virtual store version](https://www.vulncheck.com/advisories/pnpm-from-12.0.0-before-12.10.0-path-traversal-via-global-virtual-store-version) (VulnCheck) --- Machine-readable: https://pwn.watch/i/pnpm-12-global-virtual-store-path-traversal-cve-2026-145650.json · all incidents: https://pwn.watch/incidents.json. Verify against the vendor advisory before changing production systems.