Skip to content

Get notified

Get an email when a new major security incident drops. No spam, unsubscribe any time.

Only used for pwn.watch incident emails. Protected by Cloudflare Turnstile.

LivePatchedPatch now

pnpm 12 global virtual store path traversal lets malicious dependencies write files (CVE-2026-145650, CVSS 10)

pnpm 12

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

Follow this incident

Affected

  • pnpm >= 12.0.0, < 12.10.0

Fixed in

  • 12.10.0

Timeline3

  1. CVE-2026-145650 is published (VulnCheck CNA, CVSS 10.0, CWE-22).

  2. pnpm publishes GHSA-jg5c-8mvg-5wph (CVSS 10.0), credited to Zhixi "Jace" Sun.

  3. pnpm 12.10.0 ships a security fix that stops dependency versions with path traversal from writing files outside the global virtual store.

Advisories4

Get an email when a new major security incident drops. No spam, unsubscribe any time.