A self-spreading supply chain worm dubbed Mini Shai-Hulud compromised more than 170 npm and PyPI packages on May 11, 2026, hitting the entire TanStack router ecosystem (42 packages), Mistral AI's SDK suite, UiPath's automation tooling (65 packages), OpenSearch, and Guardrails AI. The attack was carried out by threat group TeamPCP, exploiting GitHub Actions cache poisoning and runtime memory extraction of OIDC tokens to hijack legitimate publishing workflows. The flaw was assigned CVE-2026-45321 with a CVSS score of 9.6.
The malicious versions affected packages with a combined 518 million cumulative downloads and shipped as 404 malicious artifacts. The payload acts as a credential stealer and self-propagating worm targeting CI/CD tokens (GitHub Actions OIDC, GitLab, CircleCI), cloud credentials (AWS IMDSv2, GCP, Azure), Kubernetes service accounts, HashiCorp Vault, and registry tokens. A dead-man's switch runs 'rm -rf ~/' if developers revoke the stolen npm token.
This is the first documented npm worm that produces validly attested malicious packages with valid SLSA Build Level 3 provenance, undermining a key security signal that the industry has been promoting. Researchers from Aikido, Snyk, StepSecurity, Wiz and Orca confirmed the attack within hours, and TanStack published a postmortem.
