Supply chain attack on TanStack: 42 packages compromised
Numerous TanStack packages on npm have suffered a supply chain attack, apparently as part of the “Mini Shai-Hulud” attack wave.
(Image: Andrii Yalanskyi / Shutterstock)
The TanStack team announced that a supply chain attack on TanStack occurred via npm: On May 11, 2026, a total of 84 compromised versions of 42 @tanstack/* packages were found on the JavaScript package manager npm, containing credential stealers. After 20 minutes, the packages were discovered by an external researcher. They have since been deprecated, but it is still unclear how often they were installed. Affected users should now act and rotate their credentials, security researchers recommend.
(Image:Â jaboy / 123rf.com)
Tools and trends in the JavaScript world: The enterJS 2026 will take place on June 16 and 17 in Mannheim. The program revolves around JavaScript and TypeScript, frameworks, tools and libraries, security, UX, and more. Early bird tickets are available in the online ticket shop.
Which packages are affected and which are not
TanStack is the creator of popular web development technologies such as the open-source state management tool TanStack Query. According to the development team, @tanstack/query*, @tanstack/table*, @tanstack/form*, @tanstack/virtual*, @tanstack/store and @tanstack/start (the meta-package, not @tanstack/start-*) were not compromised.
The 42 affected packages are listed in the GitHub Security Advisory, including @tanstack/router-cli, @tanstack/router-core, @tanstack/router-vite-plugin, @tanstack/solid-start, @tanstack/vue-start, and @tanstack/zod-adapter.
Currently, according to TanStack, one of the open questions is how many users downloaded the malicious packages.
Videos by heise
Developers should rotate credentials
The malware is designed to steal credentials from popular sources, including AWS Instance Metadata Service (IMDS), GitHub tokens, or private SSH keys. The security company Socket offers specific action recommendations for developers who have installed malicious package versions. They should rotate all secrets immediately, in the following priority order: npm tokens, GitHub PATs/OIDC trusts, AWS credentials (static keys and instance roles), vault tokens, Kubernetes service account tokens.
Mini Shai-Hulud: Recent attack on SAP packages
Since April 29, 2026, according to Socket, a supply chain campaign under the self-designation “Mini Shai-Hulud” has been active, attacking packages on npm and the Python package manager PyPI - and apparently also carried out the TanStack attack. Recently, an attack on npm packages related to SAP occurred. Behind Mini Shai-Hulud, Socket suspects actors named TeamPCP.
Further details about the TanStack attack can be found in the postmortem on the TanStack blog.
(mai)