CVE-2026-45321Malware in 42 @tanstack/* packages exfiltrates cloud credentials, GitHub tokens, and SSH…
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 pull_request_target "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.
What to do
This CVE is being exploited in the wild (CISA Known Exploited Vulnerabilities, added 2026-05-27). If you run an affected version, patch or mitigate now.
Fixed builds are available from npm: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| npm library | @tanstack/arktype-adapter | Fixed | 1.166.16 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/eslint-plugin-router | Fixed | 1.161.13 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/eslint-plugin-start | Fixed | 0.0.8 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/history | Fixed | 1.161.13 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/nitro-v2-vite-plugin | Fixed | 1.154.16 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/react-router | Fixed | 1.169.9 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/react-router-devtools | Fixed | 1.166.20 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/react-router-ssr-query | Fixed | 1.166.19 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/react-start | Fixed | 1.167.72 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/react-start-client | Fixed | 1.166.55 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/react-start-rsc | Fixed | 0.0.51 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/react-start-server | Fixed | 1.166.59 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/router-cli | Fixed | 1.166.50 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/router-core | Fixed | 1.169.9 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/router-devtools | Fixed | 1.166.20 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/router-devtools-core | Fixed | 1.167.10 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/router-generator | Fixed | 1.166.49 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/router-plugin | Fixed | 1.167.42 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/router-ssr-query-core | Fixed | 1.168.7 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/router-utils | Fixed | 1.161.15 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/router-vite-plugin | Fixed | 1.166.57 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/solid-router | Fixed | 1.169.9 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/solid-router-devtools | Fixed | 1.166.20 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/solid-router-ssr-query | Fixed | 1.166.19 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/solid-start | Fixed | 1.167.69 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/solid-start-client | Fixed | 1.166.54 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/solid-start-server | Fixed | 1.166.58 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/start-client-core | Fixed | 1.168.9 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/start-fn-stubs | Fixed | 1.161.13 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/start-plugin-core | Fixed | 1.169.27 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/start-server-core | Fixed | 1.167.37 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/start-static-server-functions | Fixed | 1.166.48 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/start-storage-context | Fixed | 1.166.42 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/valibot-adapter | Fixed | 1.166.16 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/virtual-file-routes | Fixed | 1.161.14 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/vue-router | Fixed | 1.169.9 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/vue-router-devtools | Fixed | 1.166.20 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/vue-router-ssr-query | Fixed | 1.166.19 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/vue-start | Fixed | 1.167.65 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/vue-start-client | Fixed | 1.166.50 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/vue-start-server | Fixed | 1.166.54 | GHSA-g7cv-rxg3-hmpx |
| npm library | @tanstack/zod-adapter | Fixed | 1.166.16 | GHSA-g7cv-rxg3-hmpx |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- @tanstack arktype-adapter: affected: 1.166.12, 1.166.15
- @tanstack eslint-plugin-router: affected: 1.161.9, 1.161.12
- @tanstack eslint-plugin-start: affected: 0.0.4, 0.0.7
- @tanstack history: affected: 1.161.9, 1.161.12
- @tanstack nitro-v2-vite-plugin: affected: 1.154.12, 1.154.15
- @tanstack react-router: affected: 1.169.5, 1.169.8
- @tanstack react-router-devtools: affected: 1.166.16, 1.166.19
- @tanstack react-router-ssr-query: affected: 1.166.15, 1.166.18
- @tanstack react-start: affected: 1.167.68, 1.167.71
- @tanstack react-start-client: affected: 1.166.51, 1.166.54
- @tanstack react-start-rsc: affected: 0.0.47, 0.0.50
- @tanstack react-start-server: affected: 1.166.55, 1.166.58
References
- https://github.com/TanStack/router/security/advisories/GHSA-g7cv-rxg3-hmpx
- https://github.com/TanStack/router/issues/7383
- https://tanstack.com/blog/npm-supply-chain-compromise-postmortem
- https://www.stepsecurity.io/blog/mini-shai-hulud-is-back-a-self-spreading-supply-chain-attack-hits-the-npm-ecosystem
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.