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.0: 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/E:U/U:Clear
CVE-ID: CVE-2026-50015
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: pnpm
Affected software:
pnpm

Detailed vulnerability description

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.


How to mitigate CVE-2026-50015

Install security update from vendor's website.

Sources