Exposure of Resource to Wrong Sphere in pnpm - CVE-2024-53866

 

Exposure of Resource to Wrong Sphere in pnpm - CVE-2024-53866

Published: December 10, 2024 / Updated: April 27, 2026


Vulnerability identifier: #VU128175
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2024-53866
CWE-ID: CWE-668
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 execute arbitrary code.

The vulnerability exists due to improper cache isolation in the global cache metadata handling when processing package overrides during installation. A remote attacker can poison cached npm metadata to execute arbitrary code.

User interaction is required because the poisoned cache is triggered during a subsequent install in another workspace.


How to mitigate CVE-2024-53866

Install security update from vendor's website.

Sources