Supply chain
Mistral AI SDK releases on npm and PyPI trojaned by the TanStack worm
What was reported
Mistral AI's advisory MAI-2026-002 says the Mini Shai-Hulud worm, spread through the TanStack compromise, published malicious SDK versions: @mistralai/mistralai, -azure and -gcp on npm from about 22:00 UTC on 11 May to 01:00 UTC on 12 May, and mistralai 2.4.6 on PyPI from about 00:00 to 03:00 UTC on 12 May. Mistral says the npm versions could not run their payload, while the PyPI version harvested credentials on import. It traced the cause to an affected developer device, with no impact on its global infrastructure.
What is not known
- An attacker group claimed to hold hundreds of Mistral internal repositories; Mistral's advisory does not confirm repository theft, so the claim is not recorded as fact.
- A separate later takeover of the mistralai PyPI project is not part of this record.
- No ATT&CK technique is asserted until a separate sourced mapping review.
Sources (1)
Mistral AI · Company incident report
Published 12 May 2026 · Reviewed 22 Nov 2026
Rights: Citation and short paraphrase only; check publisher terms before reuse.
Open source from Mistral AI (external site) ↗
Classification
- MITRE ATT&CK
- Not evaluated
- Ecosystems
- npm, PyPI
- Industry
- Technology
- Secret type
- Not stated
- Where it was exposed
- Developer machine
- Packages
- None linked
Secret type and location are only what the sources state; “Not stated” means the sources don’t say. Location is where the first exposed secret sat. Techniques are listed only after a sourced mapping review. “Not evaluated” means nobody has reviewed it yet, not that the technique was absent.
Related market categories
- Software supply chain
Trojaned Mistral SDK releases were published to npm and PyPI by the TanStack worm.
Does not imply: That any software supply chain security product detected or would have prevented this incident.
Reviewed 22 Nov 2026