{"id":"CVE-2024-53866","published":"2024-12-10T17:12:44Z","modified":"2025-12-31T01:11:35Z","title":"pnpm vulnerable to no-script global cache poisoning via overrides / `ignore-scripts` evasion","vendor":"pnpm","product":"pnpm","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.8,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01173,"percentile":0.67297,"provenance":"source"},"cwes":[{"id":"CWE-426","name":"Untrusted Search Path"}],"references":[{"url":"https://github.com/pnpm/pnpm/security/advisories/GHSA-vm32-9rqf-rh3r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pnpm/pnpm/commit/11afcddea48f25ed5117a87dc1780a55222b9743","tags":["x_refsource_MISC"]}],"priority":{"score":17.5,"factors":[{"name":"EPSS percentile","points":13.46},{"name":"CVSS severity","points":4.06}]},"vendorSlug":"pnpm","affectedVersions":[{"vendor":"pnpm","product":"pnpm","versions":["< 9.15.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-12-11T17:11:58.410402Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"pnpm","vulnerableRanges":["<9.15.0"],"patched":["9.15.0"],"from":["GHSA-vm32-9rqf-rh3r"],"provenance":"source"}],"summary":{"text":"pnpm versions before 9.15.0 mishandle overrides and the global cache, allowing package metadata and override state from one workspace to leak into the shared global cache and affect other workspaces. An attacker who can get a workspace to run an install (requiring user interaction and a crafted project setup, with no authentication needed) can poison that cache so that scripts in another workspace execute, even when ignore-scripts is set to true.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:21:05Z"},"euvd":{"id":"EUVD-2024-3510","exploited":false,"provenance":"source"}}