Path traversal in pnpm - CVE-2026-24131

 

Path traversal in pnpm - CVE-2026-24131

Published: April 27, 2026


Vulnerability identifier: #VU128180
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-24131
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 modify file permissions for arbitrary files.

The vulnerability exists due to path traversal in pkg-manager/package-bins/src/index.ts when processing a package's directories.bin field. A remote attacker can supply a specially crafted package to modify file permissions for arbitrary files.

Only Unix, Linux, and macOS systems are affected. Dotfiles are excluded by the default tinyglobby behavior.


How to mitigate CVE-2026-24131

Install security update from vendor's website.

Sources