Path traversal in pnpm - CVE-2026-59195

 

Path traversal in pnpm - CVE-2026-59195

Published: June 23, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to create symlinks outside the intended directory.

The vulnerability exists due to path traversal in configDependencies env lockfile handling when processing config dependency names from a crafted pnpm-lock.yaml during installation. A remote attacker can supply a malicious repository containing traversal-shaped config dependency names to create symlinks outside the intended directory.

User interaction is required to install a malicious or compromised repository, and the issue can be triggered even when running with --ignore-scripts.


Affected software

pnpm

How to mitigate CVE-2026-59195

Install security update from vendor's website.

pnpm - addressed in versions 11.0.0, 11.8.0

External References

Related Security Bulletins