Skip to main content

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

0
High
Published: 08/13/2026 (08/13/2026, 17:28:25 UTC)
Source: GCVE Database
Product: pnpm

Description

pnpm versions prior to 9.15.0 have a vulnerability where overrides and global cache handling allow one workspace to poison the global cache and execute scripts in another workspace, even when 'ignore-scripts' is enabled. This breaks user expectations about script execution prevention during installs. The issue is fixed in version 9.15.0. A workaround is to use separate cache and store directories per workspace.

CVSS v4.0

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
High
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

Affected software

Homebrewmore threats →ghsa
pnpm
pkg:brew/pnpm
Affected versions
<11.21.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/04/2026, 21:17:41 UTC

Technical Analysis

The package manager pnpm before version 9.15.0 mishandles overrides and global cache metadata, causing overrides from one workspace to leak into the global cache and affect other workspaces. Installs do not revalidate this cached data by default, including during first lockfile generation. This allows a workspace running with 'ignore-scripts=true' to poison the global cache and cause arbitrary script execution in another workspace. This global state integrity loss enables code execution during installs that users expect to be safe. Version 9.15.0 addresses this issue by fixing the cache handling and override logic.

Potential Impact

An attacker controlling one workspace can poison the global cache, causing arbitrary code execution in other workspaces during package installs, even if 'ignore-scripts' is enabled. This undermines the security expectation that 'ignore-scripts' prevents script execution on install. The vulnerability affects the integrity of the global cache and can lead to execution of malicious scripts across workspaces.

Mitigation Recommendations

Upgrade pnpm to version 9.15.0 or later, where this vulnerability is fixed. As a temporary workaround, configure each workspace to use separate cache and store directories to prevent global cache poisoning. No other mitigations are indicated.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
BREW-pnpm-CVE-2024-53866
Osv Schema Version
1.7.3
Ecosystems
["Homebrew"]
Cvss Version
4.0

Threat ID: 6ac2c0b22cdf04f656523917

Added to database: 10/04/2026, 21:10:10 UTC

Last enriched: 10/04/2026, 21:17:41 UTC

Last updated: 10/04/2026, 21:17:41 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses