Path traversal in pnpm - CVE-2026-50015

 

Path traversal in pnpm - CVE-2026-50015

Published: June 15, 2026


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

Vulnerability details

The vulnerability allows a remote user to write or delete arbitrary files.

The vulnerability exists due to path traversal in the @pnpm/patch-package patch application pipeline when processing a crafted .patch file during pnpm install. A remote user can submit a malicious patch file and patchedDependencies configuration to write or delete arbitrary files.

User interaction is required to run pnpm install on a workspace containing the malicious patch configuration.


Affected software

pnpm

How to mitigate CVE-2026-50015

Install security update from vendor's website.

pnpm - addressed in versions 11.0.0, 11.4.0

External References

Related Security Bulletins