Exposure of Resource to Wrong Sphere in pnpm - CVE-2024-53866
Published: December 10, 2024 / Updated: April 27, 2026
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.