Path traversal in pnpm - CVE-2026-59196

 

Path traversal in pnpm - CVE-2026-59196

Published: June 23, 2026


Vulnerability identifier: #VU135043
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-59196
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to overwrite files within the hoisted node_modules layout.

The vulnerability exists due to path traversal in hoisted lockfile alias handling when processing a crafted lockfile during a hoisted install. A remote attacker can supply a specially crafted lockfile alias to overwrite files within the hoisted node_modules layout.

User interaction is required to process the crafted lockfile.


Affected software

pnpm

How to mitigate CVE-2026-59196

Install security update from vendor's website.

pnpm - addressed in versions 11.0.0, 11.7.0

External References

Related Security Bulletins