Malware in 42 @tanstack/* packages exfiltrates cloud credentials, GitHub tokens, and SSH keys
Malicious versions of 42 popular TanStack npm packages were secretly published and contained malware that steals cloud credentials, GitHub tokens, and SSH keys from developers' computers. This is critical because developers using these packages unknowingly installed code that compromised their security credentials.
An attacker exploited a pull_request_target GitHub Actions misconfiguration combined with cache poisoning across fork boundaries to extract the OIDC token from the runner process, then used this legitimate credential to publish malicious package versions to npm. The malware exfiltrates sensitive credentials (cloud keys, GitHub tokens, SSH keys) from the host environment, affecting any developer who installed the compromised versions during the publication window.
Want to know if your infrastructure is exposed to this?
Talk to TrueHacking →