# CVE-2026-45321: Malware in 42 @tanstack/\* packages exfiltrates cloud credentials, GitHub tokens, and SSH keys

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.6
- **CVSS:** 9.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- **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
- **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 exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.05% (percentile 64, 2026-11-26)
- **CWE:** CWE-506
- **Aliases:** GHSA-g7cv-rxg3-hmpx
- **Published:** 2026-05-12T00:12:35.452Z
- **Modified:** 2026-10-26T18:10:00.173Z

## 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)

## 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

- npm `@tanstack/arktype-adapter`: affected \>= 1.166.12, \< 1.166.16; fixed 1.166.16 (osv)
- npm `@tanstack/eslint-plugin-router`: affected \>= 1.161.9, \< 1.161.13; fixed 1.161.13 (osv)
- npm `@tanstack/eslint-plugin-start`: affected \>= 0.0.4, \< 0.0.8; fixed 0.0.8 (osv)
- npm `@tanstack/history`: affected \>= 1.161.9, \< 1.161.13; fixed 1.161.13 (osv)
- npm `@tanstack/nitro-v2-vite-plugin`: affected \>= 1.154.12, \< 1.154.16; fixed 1.154.16 (osv)
- npm `@tanstack/react-router`: affected \>= 1.169.5, \< 1.169.9; fixed 1.169.9 (osv)
- npm `@tanstack/react-router-devtools`: affected \>= 1.166.16, \< 1.166.20; fixed 1.166.20 (osv)
- npm `@tanstack/react-router-ssr-query`: affected \>= 1.166.15, \< 1.166.19; fixed 1.166.19 (osv)
- npm `@tanstack/react-start`: affected \>= 1.167.68, \< 1.167.72; fixed 1.167.72 (osv)
- npm `@tanstack/react-start-client`: affected \>= 1.166.51, \< 1.166.55; fixed 1.166.55 (osv)
- npm `@tanstack/react-start-rsc`: affected \>= 0.0.47, \< 0.0.51; fixed 0.0.51 (osv)
- npm `@tanstack/react-start-server`: affected \>= 1.166.55, \< 1.166.59; fixed 1.166.59 (osv)
- npm `@tanstack/router-cli`: affected \>= 1.166.46, \< 1.166.50; fixed 1.166.50 (osv)
- npm `@tanstack/router-core`: affected \>= 1.169.5, \< 1.169.9; fixed 1.169.9 (osv)
- npm `@tanstack/router-devtools`: affected \>= 1.166.16, \< 1.166.20; fixed 1.166.20 (osv)
- npm `@tanstack/router-devtools-core`: affected \>= 1.167.6, \< 1.167.10; fixed 1.167.10 (osv)
- npm `@tanstack/router-generator`: affected \>= 1.166.45, \< 1.166.49; fixed 1.166.49 (osv)
- npm `@tanstack/router-plugin`: affected \>= 1.167.38, \< 1.167.42; fixed 1.167.42 (osv)
- npm `@tanstack/router-ssr-query-core`: affected \>= 1.168.3, \< 1.168.7; fixed 1.168.7 (osv)
- npm `@tanstack/router-utils`: affected \>= 1.161.11, \< 1.161.15; fixed 1.161.15 (osv)
- npm `@tanstack/router-vite-plugin`: affected \>= 1.166.53, \< 1.166.57; fixed 1.166.57 (osv)
- npm `@tanstack/solid-router`: affected \>= 1.169.5, \< 1.169.9; fixed 1.169.9 (osv)
- npm `@tanstack/solid-router-devtools`: affected \>= 1.166.16, \< 1.166.20; fixed 1.166.20 (osv)
- npm `@tanstack/solid-router-ssr-query`: affected \>= 1.166.15, \< 1.166.19; fixed 1.166.19 (osv)
- npm `@tanstack/solid-start`: affected \>= 1.167.65, \< 1.167.69; fixed 1.167.69 (osv)
- npm `@tanstack/solid-start-client`: affected \>= 1.166.50, \< 1.166.54; fixed 1.166.54 (osv)
- npm `@tanstack/solid-start-server`: affected \>= 1.166.54, \< 1.166.58; fixed 1.166.58 (osv)
- npm `@tanstack/start-client-core`: affected \>= 1.168.5, \< 1.168.9; fixed 1.168.9 (osv)
- npm `@tanstack/start-fn-stubs`: affected \>= 1.161.9, \< 1.161.13; fixed 1.161.13 (osv)
- npm `@tanstack/start-plugin-core`: affected \>= 1.169.23, \< 1.169.27; fixed 1.169.27 (osv)
- npm `@tanstack/start-server-core`: affected \>= 1.167.33, \< 1.167.37; fixed 1.167.37 (osv)
- npm `@tanstack/start-static-server-functions`: affected \>= 1.166.44, \< 1.166.48; fixed 1.166.48 (osv)
- npm `@tanstack/start-storage-context`: affected \>= 1.166.38, \< 1.166.42; fixed 1.166.42 (osv)
- npm `@tanstack/valibot-adapter`: affected \>= 1.166.12, \< 1.166.16; fixed 1.166.16 (osv)
- npm `@tanstack/virtual-file-routes`: affected \>= 1.161.10, \< 1.161.14; fixed 1.161.14 (osv)
- npm `@tanstack/vue-router`: affected \>= 1.169.5, \< 1.169.9; fixed 1.169.9 (osv)
- npm `@tanstack/vue-router-devtools`: affected \>= 1.166.16, \< 1.166.20; fixed 1.166.20 (osv)
- npm `@tanstack/vue-router-ssr-query`: affected \>= 1.166.15, \< 1.166.19; fixed 1.166.19 (osv)
- npm `@tanstack/vue-start`: affected \>= 1.167.61, \< 1.167.65; fixed 1.167.65 (osv)
- npm `@tanstack/vue-start-client`: affected \>= 1.166.46, \< 1.166.50; fixed 1.166.50 (osv)
- npm `@tanstack/vue-start-server`: affected \>= 1.166.50, \< 1.166.54; fixed 1.166.54 (osv)
- npm `@tanstack/zod-adapter`: affected \>= 1.166.12, \< 1.166.16; fixed 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)

## 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.

## 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 a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/TanStack/router/security/advisories/GHSA-g7cv-rxg3-hmpx>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-45321>
- exploit: <https://tanstack.com/blog/npm-supply-chain-compromise-postmortem>
- exploit: <https://www.stepsecurity.io/blog/mini-shai-hulud-is-back-a-self-spreading-supply-chain-attack-hits-the-npm-ecosystem>
- other: <https://github.com/TanStack/router/issues/7383>
- other: <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-45321>
- other: <https://github.com/TanStack/router>
- other: <https://socket.dev/blog/tanstack-npm-packages-compromised-mini-shai-hulud-supply-chain-attack>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-45321>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-g7cv-rxg3-hmpx> (license: <https://creativecommons.org/licenses/by/4.0/>)
- CISA KEV: CISA Known Exploited Vulnerabilities Catalog <https://www.cisa.gov/known-exploited-vulnerabilities-catalog>

HTML: <https://flawdb.com/CVE-2026-45321> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-45321>
