pnpm v12 global-virtual-store escape: dependency manifest version path traversal writes files outside the store.

CriticalGHSA-jg5c-8mvg-5wph20 Nov · 10 days ago
Source

Does it affect you?

Under review

A 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
9 daysahead of the GitHub database so far
  1. Published by the maintainer in pnpm/pnpm20 Nov, 16:57 UTC
  2. Seen by Patchwire +14 min20 Nov, 17:11 UTC
  3. Not in the GitHub database 9 days later30 Nov, 01:25 UTC
pnpm12.10.0

Versions of pnpm

12.x
safe 12.10.0
AffectedSafe

Packages

Stacks

Related alerts(3)

Same packages
Medium
Exploitable only if · read by Gemini, the source remains the reference
  • 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
Open the alert
High
Conditions not read yet

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
Open the alert
Low
Exploitable only if · read by Gemini, the source remains the reference
  • 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
Open the alert