Inclusion of Functionality from Untrusted Control Sphere in pnpm - #VU134554
Published: June 15, 2026
pnpm
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to inclusion of functionality from an untrusted control sphere in the pnpm package-manager env lockfile auto-switching path when processing a repository-controlled env lockfile during automatic version switching. A remote attacker can commit a specially crafted pnpm-lock.yaml file to cause arbitrary code execution.
User interaction is required because the victim must run pnpm directly in the malicious repository, and exploitation occurs when automatic package-manager version switching is triggered.