CVE-2024-53866
JavaScript vulnerability analysis and mitigation

Overview

The package manager pnpm prior to version 9.15.0 contains a vulnerability related to mishandling of overrides and global cache. The issue was discovered and disclosed on December 10, 2024, affecting all versions up to and including 9.14.4. This vulnerability allows workspace overrides to leak into npm metadata saved in global cache, which can then affect other workspaces, while installs by default don't revalidate the data (GitHub Advisory).

Technical details

The vulnerability stems from how pnpm handles workspace overrides and global cache interactions. When overrides are used in one workspace, they can leak into the npm metadata stored in the global cache (e.g., ~/Library/Caches/pnpm/metadata/registry.npmjs.org/). This cached metadata then affects other workspaces, and installations don't properly revalidate the data, even during initial lockfile generation. The issue has been assigned a CVSS v4.0 score of 5.8 (Moderate), with the vector string 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 Advisory).

Impact

The vulnerability can enable a workspace A (even when running with ignore-scripts=true) to poison the global cache and execute scripts in workspace B. This breaks the expected security model where users rely on ignore-scripts to prevent immediate code execution during installation. The impact extends to global state integrity being compromised through operations that would typically be considered secure, potentially leading to arbitrary code execution during package installations (GitHub Advisory).

Exploitability

The vulnerability can be exploited by creating a workspace with specific overrides that affect popular packages. Even when using --ignore-scripts flag, the exploit can succeed in poisoning the global cache, which then affects other workspaces and projects using the same cache. The attack requires network access and has high complexity, but requires no privileges and only passive user interaction (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in pnpm version 9.15.0. As a temporary workaround, users can use separate cache and store directories in each workspace to prevent cross-workspace contamination. The fix prevents metadata mutations from being saved to the cache (GitHub Advisory, GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-71476HIGH8.7
  • JavaScript logoJavaScript
  • @nx/gcs-cache
NoYesAug 06, 2026
CVE-2026-71437MEDIUM6.5
  • JavaScript logoJavaScript
  • node-mermaid
NoYesAug 06, 2026
CVE-2026-71439MEDIUM5.3
  • JavaScript logoJavaScript
  • mermaid
NoYesAug 06, 2026
CVE-2026-71498MEDIUM5.1
  • JavaScript logoJavaScript
  • re2
NoYesAug 06, 2026
CVE-2026-71438LOW2.4
  • JavaScript logoJavaScript
  • mermaid
NoYesAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management