Inclusion of Functionality from Untrusted Control Sphere in pnpm - #VU134554

 

Inclusion of Functionality from Untrusted Control Sphere in pnpm - #VU134554

Published: June 15, 2026


Vulnerability identifier: #VU134554
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: N/A
CWE-ID: CWE-829
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: pnpm
Affected software:
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.


Remediation

Install security update from vendor's website.

Sources