Inclusion of Functionality from Untrusted Control Sphere in pnpm - CVE-2026-55698

 

Inclusion of Functionality from Untrusted Control Sphere in pnpm - CVE-2026-55698

Published: June 15, 2026


Vulnerability identifier: #VU134554
CSH Severity: High
CVSS v4: 8.4 [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]
CVE-ID: CVE-2026-55698
CWE-ID: CWE-829
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

pnpm

How to mitigate CVE-2026-55698

Install security update from vendor's website.

pnpm - addressed in versions 11.0.0, 11.5.3

External References

Related Security Bulletins