Path traversal in pnpm - CVE-2026-59194

 

Path traversal in pnpm - CVE-2026-59194

Published: June 23, 2026


Vulnerability identifier: #VU135044
CSH Severity: Medium
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-59194
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to delete arbitrary files.

The vulnerability exists due to path traversal in patch-remove when processing a crafted patch entry. A remote attacker can supply a crafted patch path that resolves outside the configured patches directory to delete arbitrary files.

User interaction is required to run the pnpm patch-remove command on the crafted entry.


Affected software

pnpm

How to mitigate CVE-2026-59194

Install security update from vendor's website.

pnpm - addressed in versions 11.0.0, 11.7.0

External References

Related Security Bulletins