Link following in pnpm - CVE-2026-24056

 

Link following in pnpm - CVE-2026-24056

Published: April 27, 2026


Vulnerability identifier: #VU128181
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-24056
CWE-ID: CWE-59
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 disclose sensitive information.

The vulnerability exists due to improper link resolution before file access in store/cafs/src/addFilesFromDir.ts when installing file: or git dependencies. A remote attacker can provide a specially crafted package containing a symlink to an absolute path to disclose sensitive information.

Only file: and git dependencies are affected; registry packages are not affected. The issue can cause local files to be copied into node_modules. User interaction is required to install the crafted dependency.


How to mitigate CVE-2026-24056

Install security update from vendor's website.

Sources