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: 6.9 [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]
CVE-ID: CVE-2026-23890
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

pnpm

How to mitigate CVE-2026-23890

Install security update from vendor's website.

pnpm - update to 10.28.1

External References

Related Security Bulletins