pnpm v11 variations resolution wrapper bypasses npm verifier tarball URL binding, enabling code execution via lockfile.

HighGHSA-vhr2-359g-qgjm28 Nov · 2 days ago
Source

Does it affect you?

Not read yet

Conditions are read in the hourly run that brings the advisory in, or a following one.

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…

Timeline

28 Nov
36 hahead of the GitHub database so far
  1. Published by the maintainer in pnpm/pnpm28 Nov, 11:59 UTC
  2. Seen by Patchwire +1 h28 Nov, 13:00 UTC
  3. Not in the GitHub database 37 h later30 Nov, 01:25 UTC
pnpm11.28.5

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
Critical
Conditions under review

Source summary

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…

Affected
pnpm >=12.0.0 <12.10.0
Fixed in
12.10.0
ID
GHSA-jg5c-8mvg-5wph
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