Relative Path Traversal in pnpm - CVE-2026-50016

 

Relative Path Traversal in pnpm - CVE-2026-50016

Published: June 15, 2026


Vulnerability identifier: #VU134548
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-50016
CWE-ID: CWE-23
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 relative path traversal in dependency linking logic when processing transitive dependency aliases from registry package metadata during installation. A remote attacker can publish a specially crafted package dependency chain to execute arbitrary code.

User interaction is required to install a package and later run a normal project or CI command that consumes a replaced project-local path.


Affected software

pnpm

How to mitigate CVE-2026-50016

Install security update from vendor's website.

pnpm - addressed in versions 11.0.0, 11.4.0

External References

Related Security Bulletins