Path traversal in pnpm - #VU140826

 

Path traversal in pnpm - #VU140826

Published: August 3, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to write package files to arbitrary filesystem paths.

The vulnerability exists due to path traversal in lockfileToDepGraph when processing a crafted pnpm-lock.yaml file during installation. A remote attacker can supply a lockfile with traversal sequences in depPath keys to write package files to arbitrary filesystem paths.

User interaction is required to run pnpm install on the crafted lockfile.


Affected software

pnpm

Remediation

Install security update from vendor's website.

pnpm - addressed in versions 10.34.5, 11.11.0

External References

Related Security Bulletins