Critical, CVSS 9.6Exploited · CISA KEVnpmAmendedPublished
Malware in @tanstack/* packages exfiltrates cloud credentials, GitHub tokens, and SSH keys
CVE-2026-45321 · GHSA-g7cv-rxg3-hmpx
- Affected
- npm @tanstack/vue-start-client >= 1.166.46, <= 1.166.46; >= 1.166.49, <= 1.166.49
- Fixed in
- 1.166.50· Vendor fix available
- Issue
- On 2026-05-11, between approximately 19:20 and 19:26 UTC, 84 malicious versions across 42 @tanstack/ packages were published to the npm registry. The publishes were authenticated via the legitimate GitHub Actions OIDC trusted-publisher binding for TanStack/router, but the publish workflow itself was not modified. The attacker chained three known vulnerability classes — a pullrequesttarget "Pwn Request" misconfiguration, GitHub Actions cache poisoning across the fork↔base trust boundary, and runtime memory extraction of the OIDC token from the Actions runner process — to publish credential-stealing malware under a trusted identity. Each affected package received exactly two malicious versions, published a few minutes apart. Impact A user installing any affected version executes a payload (~2.3 MB obfuscated routerinit.js) at install time that: - Harvests credentials from common locations: - AWS instance metadata (IMDS) and Secrets Manager - GCP metadata service - Kubernetes…
Recommended action: Upgrade to 1.166.50 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.