pnpm v12 global-virtual-store escape: dependency manifest version path traversal writes files outside the store.
Does it affect you?
Under reviewA person checks critical advisories before their conditions show.
On the Rust pnpm v12 install path, a dependency's package.json version string is copied verbatim into the global-virtual-store slot directory and never checked for path traversal. When a project runs with enable-global-virtual-store=true , a fresh or resolving install ( pnpm install with no or a stale lockfile, pnpm add , pnpm update ) of an attacker-published tarball or git dependency whose manifest carries a traversal version such as "../../../../../../tmp/PWNED" builds a store-relative path that escapes the store. The escaped directory is created, and the dependency's content-addressed…
Timeline
20 Nov- Published by the maintainer in pnpm/pnpm20 Nov, 16:57 UTC
- Seen by Patchwire +14 min20 Nov, 17:11 UTC
- Not in the GitHub database 9 days later30 Nov, 01:25 UTC
Versions of pnpm
Related alerts(3)
Same packages- pnpm runs install or add on a project containing a dependency with a gzip-compressed tarball that expands beyond reasonable limits.
- Affected
- pnpm <11.28.1
- Fixed in
- 11.28.1
- ID
- GHSA-8phr-vrxr-cgqc
Source summary
In pnpm v11 (TypeScript implementation, versions 11.5.3 through 11.28.0), the isRegistryShapedResolution shape check introduced by the CVE-2026-55487 fix allows variations resolution wrappers whose inner resolutions carry http tarball URLs. The npm resolution verifier skips all resolutions with a non-null type field without inspecting inner variants, so an attacker-controlled tarball URL under a variations wrapper escapes the verifier's tarball URL binding entirely. A crafted pnpm-lock.yaml committed to a repository can impersonate an approved package (such as esbuild ) and execute arbitrary…
- Affected
- pnpm >=11.5.3 <11.28.5
- Fixed in
- 11.28.5
- ID
- GHSA-vhr2-359g-qgjm
- Using pnpm 12.14.0
- Installing a package containing a tarball entry with a non-normal .. path
- Affected
- pnpm <=12.14.0
- Fixed in
- after 12.14.0
- ID
- GHSA-xf7r-48j6-xg78