In May 2026, attackers hijacked GitHub Actions release pipelines to publish malicious versions of more than 170 npm and PyPI packages—including 42 TanStack libraries—spreading the “Mini Shai‑Hulud” credential‑stealing... The attackers chained GitHub Actions workflow weaknesses to extract publishing credentials and r...

Create a landscape editorial hero image for this Studio Global article: Inside the TanStack npm Supply‑Chain Attack: How the Mini Shai‑Hulud Worm Compromised 170+ Packages. Article summary: In May 2026, attackers used a chained GitHub Actions exploit to hijack legitimate release pipelines and publish malicious versions of more than 170 npm and PyPI packages—including 42 TanStack libraries—spreading the M.... Topic tags: cybersecurity, software supply chain, npm, pypi, github actions. Reference image context from search candidates: Reference image 1: visual subject "# Mini Shai-Hulud: The NPM Supply Chain Worm Hitting TanStack, Mistral, UiPath, and More. ArmorCode Blog - Mini Shai-Hulud: The NPM Supply Chain Worm Hitting TanStack, Mistral, UiP" source context "Mini Shai-Hulud: The NPM Supply Chain Worm Hitting TanStack ..." Reference image 2: visual subject "# Mini Shai-Hulud: The NPM Sup
Modern software development depends heavily on open‑source packages and automated CI/CD pipelines. In May 2026, attackers exploited that trust model in a coordinated supply‑chain campaign known as Mini Shai‑Hulud, compromising more than 170 npm and PyPI packages used across major developer ecosystems.
The campaign targeted popular projects including TanStack, UiPath, Mistral AI, and OpenSearch, spreading malware that attempted to steal developer and cloud credentials. Instead of stealing maintainers’ passwords, the attackers exploited weaknesses in automated GitHub Actions release pipelines to publish malicious versions through legitimate channels.
TanStack was one of the most visible victims of the campaign. On May 11, 2026, between 19:20 and 19:26 UTC, attackers published 84 malicious versions across 42 packages in the @tanstack/* namespace on npm.
Security analysis found that the altered packages contained credential‑stealing malware targeting developer machines and CI/CD systems.
Many TanStack packages are widely used in the React and JavaScript ecosystem, with some libraries downloaded millions of times weekly. That popularity meant compromised releases could quickly spread into developer environments and build pipelines.
The TanStack incident turned out to be only one part of a larger coordinated operation. Across ecosystems, researchers later identified:
Most of these releases appeared during a 48‑hour window on May 11–12, 2026.
Instead of directly stealing npm publish credentials, the attackers targeted the automation used to publish packages.
TanStack’s post‑incident analysis found that the attack combined several weaknesses in GitHub Actions workflows:
pull_request_target workflow patternBy chaining these issues together, attacker‑controlled code executed inside the release pipeline and extracted credentials capable of publishing packages. The malicious versions were then released through the project’s legitimate publishing identity.
Because the pipeline itself performed the release, the packages could appear authentic and carry valid build provenance or signatures. This helped the malicious releases blend in with normal package updates.
The malicious packages carried code designed to behave like a self‑propagating supply‑chain worm.
When installed, the packages executed scripts during dependency installation or runtime that downloaded additional payloads. In several cases this happened through package lifecycle hooks or code executed during import.
Once running, the malware attempted to:
This approach allowed the attack to move laterally between developer machines, build systems, and open‑source projects.
Because package managers routinely execute scripts during installs, simply installing a compromised dependency could activate the malware.
The malware focused primarily on developer and cloud credentials, which could enable further compromises across infrastructure and repositories.
Security reports indicate the worm searched systems for secrets such as:
Researchers also observed the malware scanning developer machines and CI runners across many file paths for stored secrets and configuration data.
Any environment that installed a compromised package was considered potentially exposed and required credential rotation.
Because some affected libraries were widely used across developer ecosystems, questions emerged about potential downstream impact on technology companies.
OpenAI stated that it found no evidence that user data was accessed or breached as a result of the supply‑chain incident involving the TanStack libraries.
The statement addressed speculation that services depending on affected packages might have exposed customer information.
The Mini Shai‑Hulud campaign highlighted several major shifts in supply‑chain attacks.
Compromising automation instead of accounts
Attackers bypassed the need for maintainer credentials by hijacking automated release pipelines.
Signed malicious packages
Because the pipeline published the packages, malicious releases could appear legitimate and carry trusted provenance.
Cross‑ecosystem reach
The campaign simultaneously targeted both npm and PyPI, dramatically increasing its potential impact.
Worm‑like propagation
The malware attempted to steal credentials and reuse them to compromise additional packages and systems automatically.
Together, these factors made the campaign one of the most significant open‑source supply‑chain incidents reported in 2026.
The response from maintainers and security researchers reinforced several practices for defending modern software supply chains.
Treat dependency installs as code execution
Installing a package can run scripts or import code that executes immediately.
Rotate credentials after potential exposure
Any environment that installed affected packages should rotate all accessible secrets.
Harden CI/CD workflows
Security guidance emphasized reviewing GitHub Actions configurations, limiting token permissions, and avoiding unsafe workflow patterns such as pull_request_target where possible.
Audit dependency versions
Teams were urged to verify that no compromised versions were installed during the May 2026 incident window.
Monitor build and publishing pipelines
Unexpected dependency installs, unusual network activity, or unauthorized publishing actions may indicate supply‑chain compromise.
Modern software supply chains rely on automation and shared dependencies. The Mini Shai‑Hulud attack demonstrated how those same systems can become powerful propagation mechanisms when compromised.
By targeting build pipelines and developer infrastructure, attackers can distribute malware through trusted channels and reach thousands of downstream projects within hours.
As a result, many organizations now treat CI/CD pipelines, dependency management, and developer environments as critical security boundaries, not just convenience tooling.
Studio Global AI
Use this topic as a starting point for a fresh source-backed answer, then compare citations before you share it.
In May 2026, attackers hijacked GitHub Actions release pipelines to publish malicious versions of more than 170 npm and PyPI packages—including 42 TanStack libraries—spreading the “Mini Shai‑Hulud” credential‑stealing...
In May 2026, attackers hijacked GitHub Actions release pipelines to publish malicious versions of more than 170 npm and PyPI packages—including 42 TanStack libraries—spreading the “Mini Shai‑Hulud” credential‑stealing... The attackers chained GitHub Actions workflow weaknesses to extract publishing credentials and release signed packages that appeared legitimate, allowing malware to spread through normal dependency installs.
The incident pushed security teams to treat dependency installs and CI pipelines as high‑risk execution environments, prompting credential rotation, workflow hardening, and stricter supply‑chain security practices.