# CVE-2024-53866: pnpm vulnerable to no-script global cache poisoning via overrides / `ignore-scripts` evasion

- Severity: Medium 5.8 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.98%, higher than 63% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-12-10T17:12:44.629Z
- Modified: 2026-09-10T03:50:56.176Z
- Also known as: GHSA-vm32-9rqf-rh3r
- Weaknesses: CWE-346, CWE-426
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- pnpm pnpm: < 9.15.0; before 9.15.0
- pnpm (npm): before 9.15.0

## Every score

- GitHub_M: CVSS:4.0 5.8 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/pnpm/pnpm/security/advisories/GHSA-vm32-9rqf-rh3r> (exploit, vendor-advisory, web)
- <https://github.com/pnpm/pnpm/commit/11afcddea48f25ed5117a87dc1780a55222b9743> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-53866> (advisory)
- <https://github.com/pnpm/pnpm> (package)

## Sources

- CVE List: [CVE-2024-53866](https://www.cve.org/CVERecord?id=CVE-2024-53866), CVE Terms of Use, modified 2025-12-31
- GitHub Advisory Database: [GHSA-vm32-9rqf-rh3r](https://github.com/advisories/GHSA-vm32-9rqf-rh3r), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-53866](https://nvd.nist.gov/vuln/detail/CVE-2024-53866), Public domain, modified 2026-06-22

---

Page: https://cve.day/CVE-2024-53866 · Whole record: https://cve.day/CVE-2024-53866.json · Rebuilt by cve.day 2026-11-25T22:58:49.886Z
