Mini Shai-Hulud worm (2026)
A self-spreading worm across npm and PyPI that steals publishing tokens and uses them to release infected versions of the victims' own packages. After an SAP wave in late April 2026, the May wave hit AI packages, including the Mistral SDKs, guardrails-ai and several MCP servers, alongside 42 TanStack packages.
- First seen
- 2026-04-29
- Disclosed
- 2026-04-29
- Affected packages
- 10
- Attributed to
- TeamPCP for the May wave, according to StepSecurity and OSV (Google Open Source Security)
What to do
Check lockfiles and caches for the versions listed. On any machine or runner that installed one, rotate npm, PyPI, GitHub and cloud tokens, look for repositories and workflows you did not create, and move publishing to trusted publishing with short-lived tokens.
Check a lockfile for these releases →| Package | Registry | Versions |
|---|---|---|
| guardrails-ai | PyPI | 0.10.1 |
| mistralai | PyPI | 2.4.6 |
| @mistralai/mistralai | npm | 2.2.2, 2.2.3, 2.2.4 |
| @mistralai/mistralai-azure | npm | 1.7.1, 1.7.2, 1.7.3 |
| @mistralai/mistralai-gcp | npm | 1.7.1, 1.7.2, 1.7.3 |
| cmux-agent-mcp | npm | 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8 |
| nextmove-mcp | npm | 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7 |
| @squawk/mcp | npm | 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5 |
| agentwork-cli | npm | 0.1.4, 0.1.5 |
| @dirigible-ai/sdk | npm | 0.6.2, 0.6.3 |
- https://www.stepsecurity.io/blog/mini-shai-hulud-is-back-a-self-spreading-supply-chain-attack-hits-the-npm-ecosystem · StepSecurity, 2026-05-11
- https://tanstack.com/blog/npm-supply-chain-compromise-postmortem · TanStack, 2026-05-11
- https://safedep.io/mini-shai-hulud-and-sap-compromise/ · SafeDep, 2026-04-29
- https://docs.mistral.ai/resources/security-advisories/MAI-2026-002 · Mistral AI, 2026-05-12
Written up from the sources above and last checked on 2026-11-18. ShieldMap describes what was affected and what to do; it does not publish the malicious code or how it worked. Report a correction to [email protected].