
On May 11, 2026, at approximately 19:20 UTC, a self-propagating supply chain worm dubbed `Mini Shai-Hulud` injected malicious code into ten official releases across five @tanstack/* packages within a six-minute window, and is actively spreading across projects. The TanStack Router framework is a cornerstone of the modern React ecosystem, used by hundreds of thousands of projects worldwide.
Unlike traditional supply chain attacks that compromise a single package via a stolen credential, Mini Shai-Hulud is a worm: it steals GitHub tokens, npm tokens, and CI/CD secrets from its victims, then uses those tokens to compromise additional packages, spreading itself autonomously through the ecosystem. The attack was first detected by Stepecurity's OSS Package Security Feed, and the incident is still active at the time of writing.
The attack exploits a fundamental trust assumption in modern CI/CD pipelines: that a package published by a legitimate account through a legitimate pipeline is safe. Mini Shai-Hulud invalidates that assumption entirely.
The following @tanstack packages and versions are confirmed malicious. Do not install or upgrade to these versions.
@tanstack/router-generator@1.166.45
@tanstack/router-generator@1.166.48
@tanstack/router-core@1.169.8
@tanstack/router-utils@1.161.14
@tanstack/virtual-file-routes@1.161.13
@tanstack/react-router@1.169.8Additional affected packages and versions are being tracked in real time on the StepSecurity OSS Package Security Feed (app.stepsecurity.io/oss-security-feed). The list is expected to grow as the incident evolves. Treat any @tanstack/*version with suspicion; if a malicious version is found, assume compromise and rotate credentials.
Arnica customers can search their SBOM for impacted @tanstack packages directly from the platform. We have added the Mini Shai-Hulud campaign to Arnica's celebrity vulnerability database, allowing you to identify all affected package versions across your entire codebase instantly, including transitive dependencies and container images.

Because this worm spreads by compromising CI/CD pipelines, it is especially important to check not just your direct dependencies but also any internal packages that may have been published by a pipeline that previously installed an infected @tanstack version. Arnica's SBOM coverage across both source repositories and container images helps you close that gap quickly.
Arnica customers have the visibility needed to identify exposure to this campaign today. If you're not yet an Arnica customer and want to check whether your organization is affected, get started with Arnica for free at app.arnica.io.
Finding affected packages is essential, but stopping the next worm before it lands matters just as much.
Most supply chain attacks succeed because of settings that already exist in your package manager — they're just turned off by default. A cooldown (minimum release age) is one of them. With a 7-day delay configured in your
.npmrc, .yarnrc.yml, or .bunfig.tomlyour package manager won't install any version that hasn't been publicly available for at least seven days. Most supply chain compromises are caught and removed within hours of publication; this setting closes that window before it reaches you.
That's why we built DepsGuard, a free, open-source CLI that turns those protections on in 60 seconds. One command configures npm, pnpm, yarn, bun, uv, Renovate, and Dependabot. It also enables
ignore-scripts=trueto block malicious install scripts, and several additional pnpm-specific controls for provenance and transitive dependency trust.
Run one command, review the interactive diff, and apply. A backup is created automatically before any file is touched. It's free, MIT-licensed, and has zero dependencies. Try it at depsguard.com.
Integrate Arnica ChatOps with your development workflow to eliminate risks before they ever reach production.