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.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: CVE-2026-50016
CWE-ID: CWE-23
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 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.


How to mitigate CVE-2026-50016

Install security update from vendor's website.

Sources