Path traversal in pnpm - #VU134553

 

Path traversal in pnpm - #VU134553

Published: June 15, 2026


Vulnerability identifier: #VU134553
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: N/A
CWE-ID: CWE-22
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 delete files or directories outside the global bin directory.

The vulnerability exists due to path traversal in pnpm global add/remove bin cleanup when processing manifest-derived bin names during global package operations. A remote attacker can install a specially crafted package with reserved bin names to delete files or directories outside the global bin directory.

User interaction is required because the malicious package must be installed globally before a later global remove, update, or add-replacement flow triggers the deletion sink.


Remediation

Install security update from vendor's website.

Sources