Path traversal in pnpm - CVE-2026-23890

 

Path traversal in pnpm - CVE-2026-23890

Published: April 27, 2026


Vulnerability identifier: #VU128184
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-23890
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 create arbitrary files outside node_modules/.bin.

The vulnerability exists due to path traversal in pkg-manager/package-bins and pkg-manager/link-bins when processing crafted scoped bin names from an installed package. A remote attacker can supply a malicious npm package with a specially crafted bin name to create arbitrary files outside node_modules/.bin.

User interaction is required to install the malicious package.


How to mitigate CVE-2026-23890

Install security update from vendor's website.

Sources