CVE-2026-45321
Malware in 42 @tanstack/* packages exfiltrates cloud credentials, GitHub tokens, and SSH keys
Also known as GHSA-g7cv-rxg3-hmpx
Mitigation
- Upgrade @tanstack/arktype-adapter to 1.166.16 or later.
- Upgrade @tanstack/eslint-plugin-router to 1.161.13 or later.
- Upgrade @tanstack/eslint-plugin-start to 0.0.8 or later.
- Upgrade @tanstack/history to 1.161.13 or later.
- Upgrade @tanstack/nitro-v2-vite-plugin to 1.154.16 or later.
- Upgrade @tanstack/react-router to 1.169.9 or later.
- Upgrade @tanstack/react-router-devtools to 1.166.20 or later.
- Upgrade @tanstack/react-router-ssr-query to 1.166.19 or later.
Who should check
- Projects that depend on npm package @tanstack/arktype-adapter (>= 1.166.12, < 1.166.16)
- Projects that depend on npm package @tanstack/eslint-plugin-router (>= 1.161.9, < 1.161.13)
- Projects that depend on npm package @tanstack/eslint-plugin-start (>= 0.0.4, < 0.0.8)
- Projects that depend on npm package @tanstack/history (>= 1.161.9, < 1.161.13)
- Projects that depend on npm package @tanstack/nitro-v2-vite-plugin (>= 1.154.12, < 1.154.16)
- Projects that depend on npm package @tanstack/react-router (>= 1.169.5, < 1.169.9)
- Projects that depend on npm package @tanstack/react-router-devtools (>= 1.166.16, < 1.166.20)
- Projects that depend on npm package @tanstack/react-router-ssr-query (>= 1.166.15, < 1.166.19)
Vulnerability facts
- Affected
- @tanstack/arktype-adapter >= 1.166.12, < 1.166.16; @tanstack/eslint-plugin-router >= 1.161.9, < 1.161.13; @tanstack/eslint-plugin-start >= 0.0.4, < 0.0.8; @tanstack/history >= 1.161.9, < 1.161.13; @tanstack/nitro-v2-vite-plugin >= 1.154.12, < 1.154.16; @tanstack/react-router >= 1.169.5, < 1.169.9; @tanstack/react-router-devtools >= 1.166.16, < 1.166.20; @tanstack/react-router-ssr-query >= 1.166.15, < 1.166.19; @tanstack/react-start >= 1.167.68, < 1.167.72; @tanstack/react-start-client >= 1.166.51, < 1.166.55; @tanstack/react-start-rsc >= 0.0.47, < 0.0.51; @tanstack/react-start-server >= 1.166.55, < 1.166.59; @tanstack/router-cli >= 1.166.46, < 1.166.50; @tanstack/router-core >= 1.169.5, < 1.169.9; @tanstack/router-devtools >= 1.166.16, < 1.166.20; @tanstack/router-devtools-core >= 1.167.6, < 1.167.10; @tanstack/router-generator >= 1.166.45, < 1.166.49; @tanstack/router-plugin >= 1.167.38, < 1.167.42; @tanstack/router-ssr-query-core >= 1.168.3, < 1.168.7; @tanstack/router-utils >= 1.161.11, < 1.161.15; @tanstack/router-vite-plugin >= 1.166.53, < 1.166.57; @tanstack/solid-router >= 1.169.5, < 1.169.9; @tanstack/solid-router-devtools >= 1.166.16, < 1.166.20; @tanstack/solid-router-ssr-query >= 1.166.15, < 1.166.19; @tanstack/solid-start >= 1.167.65, < 1.167.69; @tanstack/solid-start-client >= 1.166.50, < 1.166.54; @tanstack/solid-start-server >= 1.166.54, < 1.166.58; @tanstack/start-client-core >= 1.168.5, < 1.168.9; @tanstack/start-fn-stubs >= 1.161.9, < 1.161.13; @tanstack/start-plugin-core >= 1.169.23, < 1.169.27; @tanstack/start-server-core >= 1.167.33, < 1.167.37; @tanstack/start-static-server-functions >= 1.166.44, < 1.166.48; @tanstack/start-storage-context >= 1.166.38, < 1.166.42; @tanstack/valibot-adapter >= 1.166.12, < 1.166.16; @tanstack/virtual-file-routes >= 1.161.10, < 1.161.14; @tanstack/vue-router >= 1.169.5, < 1.169.9; @tanstack/vue-router-devtools >= 1.166.16, < 1.166.20; @tanstack/vue-router-ssr-query >= 1.166.15, < 1.166.19; @tanstack/vue-start >= 1.167.61, < 1.167.65; @tanstack/vue-start-client >= 1.166.46, < 1.166.50; @tanstack/vue-start-server >= 1.166.50, < 1.166.54; @tanstack/zod-adapter >= 1.166.12, < 1.166.16
- Fixed in
- 1.166.16, 1.161.13, 0.0.8, 1.154.16, 1.169.9, 1.166.20, 1.166.19, 1.167.72, 1.166.55, 0.0.51, 1.166.59, 1.166.50, 1.167.10, 1.166.49, 1.167.42, 1.168.7, 1.161.15, 1.166.57, 1.167.69, 1.166.54, 1.166.58, 1.168.9, 1.169.27, 1.167.37, 1.166.48, 1.166.42, 1.161.14, 1.167.65
- Exploited in the wild
- Yes: in CISA KEV since 2026-05-27; federal due date 2026-06-10; known ransomware use
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.6 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 1.05% chance of exploitation in 30 days (percentile 64, 2026-11-26)
- CWE
- CWE-506
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm @tanstack/arktype-adapter | >= 1.166.12, < 1.166.16 | 1.166.16 | osv |
| npm @tanstack/eslint-plugin-router | >= 1.161.9, < 1.161.13 | 1.161.13 | osv |
| npm @tanstack/eslint-plugin-start | >= 0.0.4, < 0.0.8 | 0.0.8 | osv |
| npm @tanstack/history | >= 1.161.9, < 1.161.13 | 1.161.13 | osv |
| npm @tanstack/nitro-v2-vite-plugin | >= 1.154.12, < 1.154.16 | 1.154.16 | osv |
| npm @tanstack/react-router | >= 1.169.5, < 1.169.9 | 1.169.9 | osv |
| npm @tanstack/react-router-devtools | >= 1.166.16, < 1.166.20 | 1.166.20 | osv |
| npm @tanstack/react-router-ssr-query | >= 1.166.15, < 1.166.19 | 1.166.19 | osv |
| npm @tanstack/react-start | >= 1.167.68, < 1.167.72 | 1.167.72 | osv |
| npm @tanstack/react-start-client | >= 1.166.51, < 1.166.55 | 1.166.55 | osv |
| npm @tanstack/react-start-rsc | >= 0.0.47, < 0.0.51 | 0.0.51 | osv |
| npm @tanstack/react-start-server | >= 1.166.55, < 1.166.59 | 1.166.59 | osv |
| npm @tanstack/router-cli | >= 1.166.46, < 1.166.50 | 1.166.50 | osv |
| npm @tanstack/router-core | >= 1.169.5, < 1.169.9 | 1.169.9 | osv |
| npm @tanstack/router-devtools | >= 1.166.16, < 1.166.20 | 1.166.20 | osv |
| npm @tanstack/router-devtools-core | >= 1.167.6, < 1.167.10 | 1.167.10 | osv |
| npm @tanstack/router-generator | >= 1.166.45, < 1.166.49 | 1.166.49 | osv |
| npm @tanstack/router-plugin | >= 1.167.38, < 1.167.42 | 1.167.42 | osv |
| npm @tanstack/router-ssr-query-core | >= 1.168.3, < 1.168.7 | 1.168.7 | osv |
| npm @tanstack/router-utils | >= 1.161.11, < 1.161.15 | 1.161.15 | osv |
| npm @tanstack/router-vite-plugin | >= 1.166.53, < 1.166.57 | 1.166.57 | osv |
| npm @tanstack/solid-router | >= 1.169.5, < 1.169.9 | 1.169.9 | osv |
| npm @tanstack/solid-router-devtools | >= 1.166.16, < 1.166.20 | 1.166.20 | osv |
| npm @tanstack/solid-router-ssr-query | >= 1.166.15, < 1.166.19 | 1.166.19 | osv |
| npm @tanstack/solid-start | >= 1.167.65, < 1.167.69 | 1.167.69 | osv |
| npm @tanstack/solid-start-client | >= 1.166.50, < 1.166.54 | 1.166.54 | osv |
| npm @tanstack/solid-start-server | >= 1.166.54, < 1.166.58 | 1.166.58 | osv |
| npm @tanstack/start-client-core | >= 1.168.5, < 1.168.9 | 1.168.9 | osv |
| npm @tanstack/start-fn-stubs | >= 1.161.9, < 1.161.13 | 1.161.13 | osv |
| npm @tanstack/start-plugin-core | >= 1.169.23, < 1.169.27 | 1.169.27 | osv |
| npm @tanstack/start-server-core | >= 1.167.33, < 1.167.37 | 1.167.37 | osv |
| npm @tanstack/start-static-server-functions | >= 1.166.44, < 1.166.48 | 1.166.48 | osv |
| npm @tanstack/start-storage-context | >= 1.166.38, < 1.166.42 | 1.166.42 | osv |
| npm @tanstack/valibot-adapter | >= 1.166.12, < 1.166.16 | 1.166.16 | osv |
| npm @tanstack/virtual-file-routes | >= 1.161.10, < 1.161.14 | 1.161.14 | osv |
| npm @tanstack/vue-router | >= 1.169.5, < 1.169.9 | 1.169.9 | osv |
| npm @tanstack/vue-router-devtools | >= 1.166.16, < 1.166.20 | 1.166.20 | osv |
| npm @tanstack/vue-router-ssr-query | >= 1.166.15, < 1.166.19 | 1.166.19 | osv |
| npm @tanstack/vue-start | >= 1.167.61, < 1.167.65 | 1.167.65 | osv |
| npm @tanstack/vue-start-client | >= 1.166.46, < 1.166.50 | 1.166.50 | osv |
| npm @tanstack/vue-start-server | >= 1.166.50, < 1.166.54 | 1.166.54 | osv |
| npm @tanstack/zod-adapter | >= 1.166.12, < 1.166.16 | 1.166.16 | osv |
| @tanstack arktype-adapter | 1.166.12; 1.166.15 | — | cvelist |
| @tanstack eslint-plugin-router | 1.161.9; 1.161.12 | — | cvelist |
| @tanstack eslint-plugin-start | 0.0.4; 0.0.7 | — | cvelist |
| @tanstack history | 1.161.9; 1.161.12 | — | cvelist |
| @tanstack nitro-v2-vite-plugin | 1.154.12; 1.154.15 | — | cvelist |
| @tanstack react-router | 1.169.5; 1.169.8 | — | cvelist |
| @tanstack react-router-devtools | 1.166.16; 1.166.19 | — | cvelist |
| @tanstack react-router-ssr-query | 1.166.15; 1.166.18 | — | cvelist |
| @tanstack react-start | 1.167.68; 1.167.71 | — | cvelist |
| @tanstack react-start-client | 1.166.51; 1.166.54 | — | cvelist |
| @tanstack react-start-rsc | 0.0.47; 0.0.50 | — | cvelist |
| @tanstack react-start-server | 1.166.55; 1.166.58 | — | cvelist |
| @tanstack router-cli | 1.166.46; 1.166.49 | — | cvelist |
| @tanstack router-core | 1.169.5; 1.169.8 | — | cvelist |
| @tanstack router-devtools | 1.166.16; 1.166.19 | — | cvelist |
| @tanstack router-devtools-core | 1.167.6; 1.167.9 | — | cvelist |
| @tanstack router-generator | 1.166.45; 1.166.48 | — | cvelist |
| @tanstack router-plugin | 1.167.38; 1.167.41 | — | cvelist |
| @tanstack router-ssr-query-core | 1.168.3; 1.168.6 | — | cvelist |
| @tanstack router-utils | 1.161.11; 1.161.14 | — | cvelist |
| @tanstack outer-vite-plugin | 1.166.53; 1.166.56 | — | cvelist |
| @tanstack solid-router | 1.169.5; 1.169.8 | — | cvelist |
| @tanstack solid-router-devtools | 1.166.16; 1.166.19 | — | cvelist |
| @tanstack solid-router-ssr-query | 1.166.15; 1.166.18 | — | cvelist |
| @tanstack solid-start | 1.167.65; 1.167.68 | — | cvelist |
| @tanstack solid-start-client | 1.166.50; 1.166.53 | — | cvelist |
| @tanstack solid-start-server | 1.166.54; 1.166.57 | — | cvelist |
| @tanstack start-client-core | 1.168.5; 1.168.8 | — | cvelist |
| @tanstack start-fn-stubs | 1.161.9; 1.161.12 | — | cvelist |
| @tanstack start-plugin-core | 1.169.23; 1.169.26 | — | cvelist |
| @tanstack start-server-core | 1.167.33; 1.167.36 | — | cvelist |
| @tanstack start-static-server-functions | 1.166.44; 1.166.47 | — | cvelist |
| @tanstack start-storage-context | 1.166.38; 1.166.41 | — | cvelist |
| @tanstack valibot-adapter | 1.166.12; 1.166.15 | — | cvelist |
| @tanstack virtual-file-routes | 1.161.10; 1.161.13 | — | cvelist |
| @tanstack vue-router | 1.169.5; 1.169.8 | — | cvelist |
| @tanstack vue-router-devtools | 1.166.16; 1.166.19 | — | cvelist |
| @tanstack vue-router-ssr-query | 1.166.15; 1.166.18 | — | cvelist |
| @tanstack vue-start | 1.167.61; 1.167.64 | — | cvelist |
| @tanstack vue-start-client | 1.166.46; 1.166.49 | — | cvelist |
| @tanstack vue-start-server | 1.166.50; 1.166.53 | — | cvelist |
| @tanstack zod-adapter | 1.166.12; 1.166.15 | — | cvelist |
Timeline
- 2026-05-12 Published
- 2026-05-27 Added to CISA KEV (exploited in the wild)
- 2026-06-10 CISA remediation due date for US federal agencies
- 2026-10-26 Last modified
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-45321. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-45321.md Affected: @tanstack/arktype-adapter >= 1.166.12, < 1.166.16; @tanstack/eslint-plugin-router >= 1.161.9, < 1.161.13; @tanstack/eslint-plugin-start >= 0.0.4, < 0.0.8; @tanstack/history >= 1.161.9, < 1.161.13; @tanstack/nitro-v2-vite-plugin >= 1.154.12, < 1.154.16; @tanstack/react-router >= 1.169.5, < 1.169.9; … Fixed in: 1.166.16, 1.161.13, 0.0.8, 1.154.16, 1.169.9, 1.166.20, 1.166.19, 1.167.72, 1.166.55, 0.0.51, 1.166.59, 1.166.50, 1.167.10, 1.166.49, 1.167.42, 1.168.7, 1.161.15, 1.166.57, 1.167.69, 1.166.54, 1.166.58, 1.168.9, 1.169.27, 1.167.37, 1.166.48, 1.166.42, 1.161.14, 1.167.65 Steps: 1. Search this machine and project for @tanstack/arktype-adapter (npm), @tanstack/eslint-plugin-router (npm), @tanstack/eslint-plugin-start (npm), @tanstack/history (npm), @tanstack/nitro-v2-vite-plugin (npm), @tanstack/react-router (npm): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Exploits and PoCs
FAQ
Is CVE-2026-45321 being exploited?
Yes. CISA lists CVE-2026-45321 in its Known Exploited Vulnerabilities catalog since 2026-05-27, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 1.05% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-45321?
Critical: CVSS 9.6 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-45321?
@tanstack/arktype-adapter >= 1.166.12, < 1.166.16; @tanstack/eslint-plugin-router >= 1.161.9, < 1.161.13; @tanstack/eslint-plugin-start >= 0.0.4, < 0.0.8; @tanstack/history >= 1.161.9, < 1.161.13; @tanstack/nitro-v2-vite-plugin >= 1.154.12, < 1.154.16; @tanstack/react-router >= 1.169.5, < 1.169.9; @tanstack/react-router-devtools >= 1.166.16, < 1.166.20; @tanstack/react-router-ssr-query >= 1.166.15, < 1.166.19; @tanstack/react-start >= 1.167.68, < 1.167.72; @tanstack/react-start-client >= 1.166.51, < 1.166.55; @tanstack/react-start-rsc >= 0.0.47, < 0.0.51; @tanstack/react-start-server >= 1.166.55, < 1.166.59; @tanstack/router-cli >= 1.166.46, < 1.166.50; @tanstack/router-core >= 1.169.5, < 1.169.9; @tanstack/router-devtools >= 1.166.16, < 1.166.20; @tanstack/router-devtools-core >= 1.167.6, < 1.167.10; @tanstack/router-generator >= 1.166.45, < 1.166.49; @tanstack/router-plugin >= 1.167.38, < 1.167.42; @tanstack/router-ssr-query-core >= 1.168.3, < 1.168.7; @tanstack/router-utils >= 1.161.11, < 1.161.15; @tanstack/router-vite-plugin >= 1.166.53, < 1.166.57; @tanstack/solid-router >= 1.169.5, < 1.169.9; @tanstack/solid-router-devtools >= 1.166.16, < 1.166.20; @tanstack/solid-router-ssr-query >= 1.166.15, < 1.166.19; @tanstack/solid-start >= 1.167.65, < 1.167.69; @tanstack/solid-start-client >= 1.166.50, < 1.166.54; @tanstack/solid-start-server >= 1.166.54, < 1.166.58; @tanstack/start-client-core >= 1.168.5, < 1.168.9; @tanstack/start-fn-stubs >= 1.161.9, < 1.161.13; @tanstack/start-plugin-core >= 1.169.23, < 1.169.27; @tanstack/start-server-core >= 1.167.33, < 1.167.37; @tanstack/start-static-server-functions >= 1.166.44, < 1.166.48; @tanstack/start-storage-context >= 1.166.38, < 1.166.42; @tanstack/valibot-adapter >= 1.166.12, < 1.166.16; @tanstack/virtual-file-routes >= 1.161.10, < 1.161.14; @tanstack/vue-router >= 1.169.5, < 1.169.9; @tanstack/vue-router-devtools >= 1.166.16, < 1.166.20; @tanstack/vue-router-ssr-query >= 1.166.15, < 1.166.19; @tanstack/vue-start >= 1.167.61, < 1.167.65; @tanstack/vue-start-client >= 1.166.46, < 1.166.50; @tanstack/vue-start-server >= 1.166.50, < 1.166.54; @tanstack/zod-adapter >= 1.166.12, < 1.166.16.
Is there a fix for CVE-2026-45321?
Yes. Fixed in 1.166.16, 1.161.13, 0.0.8, 1.154.16, 1.169.9, 1.166.20, 1.166.19, 1.167.72, 1.166.55, 0.0.51, 1.166.59, 1.166.50, 1.167.10, 1.166.49, 1.167.42, 1.168.7, 1.161.15, 1.166.57, 1.167.69, 1.166.54, 1.166.58, 1.168.9, 1.169.27, 1.167.37, 1.166.48, 1.166.42, 1.161.14, 1.167.65. Upgrade @tanstack/arktype-adapter to 1.166.16 or later. Upgrade @tanstack/eslint-plugin-router to 1.161.13 or later. Upgrade @tanstack/eslint-plugin-start to 0.0.8 or later. Upgrade @tanstack/history to 1.161.13 or later. Upgrade @tanstack/nitro-v2-vite-plugin to 1.154.16 or later. Upgrade @tanstack/react-router to 1.169.9 or later. Upgrade @tanstack/react-router-devtools to 1.166.20 or later. Upgrade @tanstack/react-router-ssr-query to 1.166.19 or later.
How do I check if I'm affected by CVE-2026-45321?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.