pnpm 12’s global virtual store could let a dependency’s version string write files outside the store, and the bug is rated CVSS 10.0. The fix shipped in pnpm 12.10.0 on 6 October. GitHub’s advisory went up on 20 November, and the CVE record, CVE-2026-145650, only appeared on 6 December.
I installed pnpm 12.9.0 and 12.10.0 and ran the setting at the centre of it. I didn’t build a malicious package, so I haven’t reproduced the traversal on 12.9.0 or confirmed the fix on 12.10.0. What follows comes from the advisory, the release notes and the CVE records, plus what I could run safely.
What the bug is
The global virtual store keeps one shared copy of each installed package and gives every package a folder named by its name, its version and a hash of its dependency graph. In my run, the folder for is-positive 3.1.0 sat at links/@/is-positive/3.1.0/ followed by the hash.
The advisory says the Rust version of pnpm 12 copies the version straight from a dependency’s package.json into that path and never checks it. A version written as a run of ../ segments climbs out of the store. pnpm then creates the folder and imports the package’s files into it. The advisory’s own example points at a directory under /tmp.

pnpm already had a guard that keeps a folder inside the store, but it only ran on the frozen-lockfile path. A fresh install resolves the package and writes the folder before any such check runs. That covers pnpm install with no lockfile or a stale one, pnpm add and pnpm update.
An attacker who gets one malicious dependency resolved, directly or further down the tree, can write or overwrite a file at a path they pick. The advisory names git hooks, node_modules/.bin entries, shell profiles and scheduler drop-ins as the routes from there to code execution. On a CI machine that installs without anyone watching, nobody has to click anything.
Who’s affected
10.0
CVSS score
12.10.0
First fixed version
61 days
From fix to CVE record
The affected range is pnpm 12.0.0 up to, but not including, 12.10.0. pnpm 11 isn’t in it. Three things have to hold at once.

The setting is the one that narrows it. The advisory says enable-global-virtual-store is off by default, but pnpm’s own package-manager installs and runtime shims turn it on, and anyone can enable it in config. pnpm’s documentation calls the global virtual store experimental, off by default for project installs and on by default for global installs. The advisory doesn’t say whether a global install reaches the bug.

The 61-day gap
The dates are the odd part. pnpm shipped 12.10.0 on 6 October, and its release notes list the fix as one security line among several. It says pnpm install now stops a dependency version with path traversal from writing files outside the global virtual store. There’s no CVE and no mention of severity.
The advisory was published on 20 November by the GitHub account KSXGitHub, with manus-pi and manus-use credited as reporters. Its text still calls 12.4.1 the newest release, which puts the report before the fix. The CVE record and VulnCheck’s entry are dated 6 December, with a CVSS 4.0 score of 10.0.

Anyone who kept pnpm updated was patched in October without a CVE to prompt the update. Anyone who first saw the number in a CVE feed on 6 December read a 10.0 for a bug that had been fixed for two months. cve.now counts 6.3% of last week’s pnpm downloads, 24.5 million, as affected versions. That’s a count of versions, not of installs with the setting on. CISA hasn’t listed the CVE as exploited, and cve.now tracks no public exploit code.
What I ran
I installed both versions from npm on a box with 4 cores, 15 GB RAM and Ubuntu 24, and ran the same benign steps on each. In a fresh project with no settings, pnpm config get virtualStoreType printed undefined on both. I then turned the store on in pnpm-workspace.yaml and added is-positive, an ordinary registry package.
npm i [email protected]
pnpm config get virtualStoreType
printf 'enableGlobalVirtualStore: true\nstoreDir: %s/store\n' $PWD > pnpm-workspace.yaml
pnpm add is-positive
readlink node_modules/is-positive
# ../store/v11/links/@/is-positive/3.1.0/<hash>/node_modules/is-positive
Both 12.9.0 and 12.10.0 linked the package into a links/@/is-positive/3.1.0/<hash> folder inside the store I’d pointed them at. That’s the path shape the advisory describes, and it shows the setting does nothing until someone writes it.
The wider picture
pnpm 12 went stable on 26 August as a rewrite in Rust that keeps pnpm 11’s commands, settings and lockfile format. Socket reported median install times on Vercel’s 1,670-package workspace falling by 64.4% to 90.5%. The bug sits in that new code, which is why the range starts at 12.0.0.
This isn’t the first path problem in the area. The advisory lists three earlier pnpm traversal advisories, GHSA-c59q-g84q-2gj5, GHSA-fr4h-3cph-29xv and GHSA-2rx9-3g3h-c2jv. They covered dependency names, a hoisted alias and a cached store folder suffix. This one is the version segment, which those guards never looked at.
12.10.0 also carries other security fixes. pnpm now checks locked config dependencies against their registry, checks the tarballs inside a variations resolution, rejects archive metadata over 64 MiB, and stops printing registry credentials in one warning. And pnpm says it wants the global virtual store on by default in a future version. When that happens, the setting that limits exposure today goes away, and 12.10.0 or later is where the check lives.
What to check
pnpm -v
grep -riE "global-?virtual-?store|virtualStoreType" pnpm-workspace.yaml .npmrc
pnpm self-update
Anything below 12.10.0 on the 12 line is in range, so update it. If the grep finds the setting, treat that project as the one that was exposed, and look at what its CI installs from a fresh or stale lockfile.




