Live threats

All CVEs / Pnpm

CVE-2024-53866Pnpm

Medium 5.8 No auth needed

Priority
50
CVSS 4.0
5.8
EPSS
1.2%
probability of exploitation in 30 days · percentile 67
Auth required
No
Published
Dec 10, 2024
Updated
Jun 22, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-426
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

The package manager pnpm prior to version 9.15.0 seems to mishandle overrides and global cache: Overrides from one workspace leak into npm metadata saved in global cache; npm metadata from global cache affects other workspaces; and installs by default don't revalidate the data (including on first lockfile generation). This can make workspace A (even running with `ignore-scripts=true`) posion global cache and execute scripts in workspace B. Users generally expect `ignore-scripts` to be sufficient to prevent immediate code execution on install (e.g. when the tree is just repacked/bundled without executing it). Here, that expectation is broken. Global state integrity is lost via operations that one would expect to be secure, enabling subsequently running arbitrary code execution on installs. Version 9.15.0 fixes the issue. As a work-around, use separate cache and store dirs in each workspace.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pnpm.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm pnpm < 9.15.0 9.15.0 npm install pnpm@9.15.0

Per OSV / GitHub Advisories (GHSA-vm32-9rqf-rh3r). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pnpmpnpm< 9.15.0

Official sources

References

Links published by the sources. Open them with care.