Path traversal in pnpm - CVE-2026-23888

 

Path traversal in pnpm - CVE-2026-23888

Published: April 27, 2026


Vulnerability identifier: #VU128182
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-23888
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 attacker to write arbitrary files outside the intended extraction directory.

The vulnerability exists due to path traversal in pnpm binary fetcher when extracting binary ZIP archives or processing a crafted BinaryResolution.prefix value. A remote attacker can supply a specially crafted ZIP archive or prefix value to write arbitrary files outside the intended extraction directory.

User interaction is required to install a malicious package or otherwise process the crafted binary archive.


How to mitigate CVE-2026-23888

Install security update from vendor's website.

Sources