# Mini Shai-Hulud Worm Hits @mistralai and @tanstack npm Packages — 84 Malicious Versions Published in Six Minutes With Valid SLSA Provenance

> A second wave of the Shai-Hulud npm worm published 84 backdoored versions across @tanstack, @mistralai, and 160+ more packages in a six-minute window on May 11.

- Org: npm Ecosystem
- Date: 2026-05-11
- Category: security, ecosystem
- Source: https://www.aikido.dev/blog/mini-shai-hulud-is-back-tanstack-compromised
- Canonical page: https://ai-tldr.dev/releases/mini-shai-hulud-mistral-tanstack-may11/

## In short

Self-spreading npm worm hijacked GitHub Actions OIDC tokens to publish 84 malicious package versions across @tanstack, @mistralai, @uipath, and 160+ scopes. First documented worm whose payloads ship with valid SLSA provenance.

## What it is

A self-propagating supply-chain attack on the npm registry. The worm targets maintainers' GitHub Actions runners, harvests the short-lived OIDC token that npm trusts as the publisher, then republishes hijacked versions of unrelated packages owned by the same scope. The May 11 wave hit @tanstack/router, @mistralai/mistralai (and the Azure and GCP variants), @uipath, @squawk, @tallyui, @beproduct, and dozens of others.

## How it works

The attacker forked TanStack/router and opened a PR that defined a fake @tanstack/setup package whose npm prepare hook runs during CI. The hook scans the GitHub Actions runner heap for the OIDC JWT used in the trusted-publisher binding between GitHub and npm, then republishes payload-laden tarballs over that authenticated channel. Because the worm publishes through legitimate OIDC, the malicious tarballs carry valid SLSA provenance — the first documented npm worm with attested malware.

## Why it matters

Provenance-only defenses do not block this worm. Any team that ran a CI build referencing @mistralai/mistralai 2.2.2 to 2.2.4, @mistralai/mistralai-azure 1.7.1 to 1.7.3, @mistralai/mistralai-gcp 1.7.1 to 1.7.3, or affected @tanstack versions in the last 48 hours should rotate every secret accessible from that pipeline. TanStack's react-router alone has roughly 12M weekly downloads.

## Who it's for

Anyone shipping npm packages via GitHub Actions, plus teams running Mistral or TanStack SDKs in production.

## Try it

npm ls @mistralai/mistralai @tanstack/router && npm audit

## Links

- [Aikido Analysis](https://www.aikido.dev/blog/mini-shai-hulud-is-back-tanstack-compromised)
- [TanStack Postmortem](https://tanstack.com/blog/npm-supply-chain-compromise-postmortem)
- [StepSecurity Report](https://www.stepsecurity.io/blog/mini-shai-hulud-is-back-a-self-spreading-supply-chain-attack-hits-the-npm-ecosystem)
- [Socket Analysis](https://socket.dev/blog/tanstack-npm-packages-compromised-mini-shai-hulud-supply-chain-attack)
