← All insights
Security & Trust

React Query Got Wormed. OpenAI Got Hit. The npm Supply Chain Has a Predator.

The Mini Shai-Hulud worm compromised TanStack, Mistral AI, and 160+ packages. It steals tokens, publishes poisoned versions of more packages, and can wipe developer machines. OpenAI confirmed 2 employee devices were compromised.

· 8 min read
Share on X LinkedIn
React Query Got Wormed. OpenAI Got Hit. The npm Supply Chain Has a Predator.

The Worm That Eats the Ecosystem

On May 12, 2026, security researchers disclosed Mini Shai-Hulud — a self-propagating supply chain worm that compromised TanStack (React Query), Mistral AI SDKs, UiPath packages, and over 160 additional npm and PyPI packages. Unlike traditional supply chain attacks that poison one package and wait, this worm propagates: it steals developer npm tokens from compromised machines, then uses those tokens to publish poisoned versions of every package the developer maintains.

The attack chain: compromised package installs → steals npm/PyPI tokens, AWS/GCP/Azure credentials, GitHub secrets, SSH keys → publishes malicious versions of the developer's other packages → those packages infect more developers → the worm spreads exponentially. It also includes a destructive payload — a persistent daemon that can wipe developer home directories.

160+
Packages compromised
Source: Orca Security, Tenable. Including TanStack (React Query), Mistral AI SDKs, UiPath, and packages across npm and PyPI.
518M+
Total monthly downloads affected
Source: SecurityWeek. Combined monthly download count across all compromised package versions.

OpenAI Confirmed the Blast Radius

OpenAI disclosed on May 15 that two employee devices were compromised after ingesting a malicious TanStack package. The company mandated all macOS users update their applications before June 12, 2026. When the company building GPT gets hit by a supply chain worm through a React utility library, it demonstrates something WebPulse has been measuring: the JavaScript dependency tree is a systemic risk, not an individual package problem.

2
OpenAI devices compromised
Source: OpenAI disclosure (May 15, 2026). Employee macOS devices compromised via malicious TanStack package. Company-wide update mandate issued with June 12 deadline.

Why TanStack Matters for Framework Rankings

TanStack React Query is not a niche library. It's the standard data-fetching layer for React and Next.js applications — used by enterprises, startups, and open-source projects. When TanStack gets compromised, every Next.js application that depends on it is in the blast radius. Not because Next.js has a vulnerability, but because the ecosystem around it does.

This is the supply chain dimension WebPulse tracks. A framework's security score isn't just its own CVE count — it's the health of the entire dependency graph. Next.js scores 82/100 on security for its own codebase. But its npm dependency tree contains thousands of transitive packages, each one a potential entry point for a worm like Shai-Hulud.

92
Next.js own CVEs
Source: WebPulse NVD collection (June 11, 2026). Next.js direct vulnerabilities. The supply chain risk from transitive dependencies like TanStack is additional.

The Pattern Is Accelerating

The timeline tells the story. September 2025: Shai-Hulud first appears. May 2026: Mini Shai-Hulud hits TanStack and 160+ packages. June 1, 2026: Miasma hits 32 Red Hat packages. June 8, 2026: Hades variant targets PyPI MCP developer packages. Each wave is larger, faster, and more targeted. The worm learned to jump ecosystems — npm to PyPI to Crates.io.

Frameworks with smaller dependency footprints are structurally less exposed. Astro, Hugo, and Eleventy pull fewer npm packages than Next.js or Nuxt. Python frameworks like Django and FastAPI are outside the npm blast radius entirely. The framework choice doesn't just determine your server's attack surface — it determines which supply chain ecosystem's risks you inherit.

32
Red Hat Miasma packages
Source: Red Hat RHSB-2026-006. @redhat-cloud-services npm scope compromised via stolen GitHub account. CI/CD secrets, cloud credentials targeted.
Share this insight
More insights