CVE-2026-45321 — Malware in @tanstack/react-r…r-devtools — CVE Details
Malware in @tanstack/* packages exfiltrates cloud credentials, GitHub tokens, and SSH keys
What Should I Do?
Patch Immediately
This vulnerability is confirmed under active exploitation (CISA KEV). Patch within 24-48 hours if possible.
Does your project use an affected @tanstack/react-router-devtools version?
Paste your package-lock.json to check it for CVE-2026-45321 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
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.
Impact
A user installing any affected version executes a payload (~2.3 MB obfuscated router_init.js) at install time that:
- Harvests credentials from common locations:
- AWS instance metadata (IMDS) and Secrets Manager
- GCP metadata service
- Kubernetes service-account tokens
- HashiCorp Vault tokens
~/.npmrc(npm tokens)- GitHub tokens (env vars,
ghCLI config,.git-credentials) - SSH private keys (
~/.ssh/)
- Exfiltrates harvested data over the Session/Oxen messenger file-upload network (
filev2.getsession.org,seed{1,2,3}.getsession.org). This is end-to-end encrypted with no attacker-controlled C2, so blocking by IP or domain is the only network mitigation. - Enumerates packages that the victim maintains via
registry.npmjs.org/-/v1/search?text=maintainer:<user>and republishes them with the same injection, propagating the compromise across npm.
Any developer or CI environment that ran npm install, pnpm install, or yarn install against an affected version on 2026-05-11 should be considered compromised. All credentials accessible to the install process should be rotated immediately. Cloud audit logs should be reviewed for activity originating from the affected hosts during and after the install window.
Detection
Inspect the published manifest of any pinned @tanstack/* version. Malicious manifests contain this exact optionalDependencies entry:
"optionalDependencies": {
"@tanstack/setup": "github:tanstack/router#79ac49eedf774dd4b0cfa308722bc463cfe5885c"
}
To check a version without running install scripts:
npm pack @tanstack/<name>@<version> # downloads tarball; does NOT execute lifecycle scripts
tar -xzf *.tgz
grep -A3 optionalDependencies package/package.json
ls -la package/router_init.js # malicious payload, ~2.3 MB, present at package root
The payload file router_init.js is approximately 2.3 MB of obfuscated JavaScript. It is placed at the tarball root and is intentionally not declared in the package's "files" array, so it does not appear in the package's documented contents.
Mechanism
@tanstack/setup is not a real package on the npm registry. The github:tanstack/router#79ac49ee... specifier resolves to an orphan commit pushed to a fork in the tanstack/router GitHub fork network. GitHub serves commits across the entire fork network for git-URL dependencies, so the attacker did not require write access to TanStack/router itself — only the ability to fork and push to their own fork.
When npm processes the optional dependency, it:
- Fetches the orphan commit from the fork network.
- Installs the commit's declared dependencies (which include a real
bunbinary). - Runs the commit's
preparelifecycle script:bun run tanstack_runner.js && exit 1. The trailingexit 1causes the optional install to fail, after which npm silently discards it — leaving nonode_modulestrace. - The
tanstack_runner.jsscript in turn executesrouter_init.jsfrom the host package's tarball.
Patches
Affected versions are being deprecated on npm with a SECURITY: notice. Where npm policy allows (no existing third-party dependents), affected versions are also being unpublished. The npm security team has been engaged to pull tarballs server-side for versions that cannot be unpublished.
Clean follow-up releases are being prepared. Update to the patched version listed in the affected-products table for each package, then reinstall from a clean lockfile.
Workarounds
Until clean follow-up releases are available:
- Pin every
@tanstack/*dependency to a known-good version published before 2026-05-11 19:00 UTC. The last known-good version for most affected packages was published on 2026-03-15. - Delete
node_modulesand the lockfile, then reinstall to ensure no transitive dependency resolves to a malicious version. - Configure npm to skip lifecycle scripts on install (
npm config set ignore-scripts true) as a temporary defense-in-depth measure. - For CI, audit any pipeline that ran
installagainst@tanstack/*between 19:20 and 19:30 UTC on 2026-05-11. Treat the runner as compromised and rotate any secrets it had access to.
Indicators of compromise
| Indicator | Value |
|---|---|
| Malicious git ref | github:tanstack/router#79ac49eedf774dd4b0cfa308722bc463cfe5885c |
| Fictitious package name | @tanstack/setup |
| Payload filename | router_init.js (~2.3 MB, package root, undeclared in files) |
| Helper filename in orphan commit | tanstack_runner.js |
| Exfiltration network | filev2.getsession.org, seed1.getsession.org, seed2.getsession.org, seed3.getsession.org |
| Second-stage payload URLs | https://litter.catbox.moe/h8nc9u.js, https://litter.catbox.moe/7rrc6l.mjs |
| Poisoned cache key | Linux-pnpm-store-6f9233a50def742c09fde54f56553d6b449a535adf87d4083690539f49ae4da11 |
| Publish window (UTC) | 2026-05-11 19:20 — 19:26 |
| Publish mechanism | GitHub Actions OIDC trusted publisher (oidc:db7d6f54-05d5-412b-8a10-e7a8398b303e) |
| Workflow runs | https://github.com/TanStack/router/actions/runs/25613093674 (attempt 4), https://github.com/TanStack/router/actions/runs/25691781302 |
| Attacker GitHub accounts | zblgg (id 127806521), voicproducoes (id 269549300) |
| Attacker fork (renamed to evade detection) | https://github.com/zblgg/configuration |
Credits
- The security researcher who initially disclosed the vulnerability publicly with detailed analysis at https://github.com/TanStack/router/issues/7383
References
- Public incident tracking issue: https://github.com/TanStack/router/issues/7383
- Related research:
- Adnan Khan, "The Monsters in Your Build Cache: GitHub Actions Cache Poisoning" (May 2024)
- GitHub Security Lab, "Keeping your GitHub Actions and workflows secure: Preventing Pwn Requests"
- StepSecurity, "tj-actions/changed-files action is compromised" (March 2025) — the malicious payload reuses this incident's runner-memory extraction technique verbatim
Advisory Timeline
- First published May 12, 2026 (198 days ago).
- Last revised September 10, 2026 — 121 days after initial publication.
- Added to CISA's Known Exploited Vulnerabilities catalog 15 days after publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install @tanstack/react-router-devtools@1.166.20
npm install @tanstack/solid-router-devtools@1.166.20
npm install @tanstack/react-router-devtools@1.166.20
npm install @tanstack/valibot-adapter@1.166.16
npm install @tanstack/react-start-rsc@0.0.51
npm install @tanstack/solid-router@1.169.9
npm install @tanstack/router-generator@1.166.49
npm install @tanstack/router-devtools@1.166.20
npm install @tanstack/vue-start-client@1.166.50
npm install @tanstack/eslint-plugin-start@0.0.8
npm install @tanstack/vue-router@1.169.9
npm install @tanstack/react-start@1.167.72
npm install @tanstack/start-client-core@1.168.9
npm install @tanstack/start-server-core@1.167.37
npm install @tanstack/solid-start-client@1.166.54
npm install @tanstack/start-client-core@1.168.9
npm install @tanstack/start-fn-stubs@1.161.13
npm install @tanstack/router-ssr-query-core@1.168.7
npm install @tanstack/react-start-client@1.166.55
npm install @tanstack/solid-router-ssr-query@1.166.19
npm install @tanstack/eslint-plugin-router@1.161.13
npm install @tanstack/router-devtools-core@1.167.10
npm install @tanstack/router-devtools-core@1.167.10
npm install @tanstack/router-core@1.169.9
npm install @tanstack/vue-start@1.167.65
npm install @tanstack/router-vite-plugin@1.166.57
npm install @tanstack/start-static-server-functions@1.166.48
npm install @tanstack/start-storage-context@1.166.42
npm install @tanstack/react-start-server@1.166.59
npm install @tanstack/vue-router-ssr-query@1.166.19
npm install @tanstack/history@1.161.13
npm install @tanstack/virtual-file-routes@1.161.14
npm install @tanstack/router-cli@1.166.50
npm install @tanstack/solid-router@1.169.9
npm install @tanstack/react-router-ssr-query@1.166.19
npm install @tanstack/nitro-v2-vite-plugin@1.154.16
npm install @tanstack/router-plugin@1.167.42
npm install @tanstack/vue-start-client@1.166.50
npm install @tanstack/solid-router-ssr-query@1.166.19
npm install @tanstack/vue-router-devtools@1.166.20
npm install @tanstack/solid-start-server@1.166.58
npm install @tanstack/react-start-server@1.166.59
npm install @tanstack/router-plugin@1.167.42
npm install @tanstack/router-utils@1.161.15
npm install @tanstack/react-router@1.169.9
npm install @tanstack/vue-start@1.167.65
npm install @tanstack/router-generator@1.166.49
npm install @tanstack/react-start-client@1.166.55
npm install @tanstack/vue-start-server@1.166.54
npm install @tanstack/vue-router-devtools@1.166.20
npm install @tanstack/zod-adapter@1.166.16
npm install @tanstack/start-plugin-core@1.169.27
npm install @tanstack/arktype-adapter@1.166.16
npm install @tanstack/start-server-core@1.167.37
npm install @tanstack/router-vite-plugin@1.166.57
npm install @tanstack/router-utils@1.161.15
npm install @tanstack/nitro-v2-vite-plugin@1.154.16
npm install @tanstack/vue-router-ssr-query@1.166.19
npm install @tanstack/virtual-file-routes@1.161.14
npm install @tanstack/react-start-rsc@0.0.51
npm install @tanstack/router-devtools@1.166.20
npm install @tanstack/history@1.161.13
npm install @tanstack/solid-router-devtools@1.166.20
npm install @tanstack/react-router@1.169.9
npm install @tanstack/vue-router@1.169.9
npm install @tanstack/solid-start@1.167.69
npm install @tanstack/router-cli@1.166.50
npm install @tanstack/eslint-plugin-router@1.161.13
npm install @tanstack/eslint-plugin-start@0.0.8
npm install @tanstack/solid-start-server@1.166.58
npm install @tanstack/solid-start@1.167.69
npm install @tanstack/solid-start-client@1.166.54
npm install @tanstack/start-plugin-core@1.169.27
npm install @tanstack/start-storage-context@1.166.42
npm install @tanstack/router-core@1.169.9
npm install @tanstack/react-router-ssr-query@1.166.19
npm install @tanstack/arktype-adapter@1.166.16
npm install @tanstack/valibot-adapter@1.166.16
npm install @tanstack/zod-adapter@1.166.16
npm install @tanstack/router-ssr-query-core@1.168.7
npm install @tanstack/start-fn-stubs@1.161.13
npm install @tanstack/react-start@1.167.72
npm install @tanstack/vue-start-server@1.166.54
npm install @tanstack/start-static-server-functions@1.166.48
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (84)
Affects 1 ecosystem: npm (42).
| Package | Fixed In |
|---|---|
| @tanstack/react-router-devtools npm · Affected: 1.166.19 | 1.166.20 |
| @tanstack/solid-router-devtools npm · Affected: 1.166.19 | 1.166.20 |
| @tanstack/react-router-devtools npm · Affected: 1.166.16 | 1.166.20 |
| @tanstack/valibot-adapter npm · Affected: 1.166.15 | 1.166.16 |
| @tanstack/react-start-rsc npm · Affected: 0.0.50 | 0.0.51 |
| @tanstack/solid-router npm · Affected: 1.169.8 | 1.169.9 |
| @tanstack/router-generator npm · Affected: 1.166.48 | 1.166.49 |
| @tanstack/router-devtools npm · Affected: 1.166.16 | 1.166.20 |
| @tanstack/vue-start-client npm · Affected: 1.166.46 | 1.166.50 |
| @tanstack/eslint-plugin-start npm · Affected: 0.0.7 | 0.0.8 |
| @tanstack/vue-router npm · Affected: 1.169.8 | 1.169.9 |
| @tanstack/react-start npm · Affected: 1.167.68 | 1.167.72 |
| @tanstack/start-client-core npm · Affected: 1.168.8 | 1.168.9 |
| @tanstack/start-server-core npm · Affected: 1.167.36 | 1.167.37 |
| @tanstack/solid-start-client npm · Affected: 1.166.53 | 1.166.54 |
| @tanstack/start-client-core npm · Affected: 1.168.5 | 1.168.9 |
| @tanstack/start-fn-stubs npm · Affected: 1.161.12 | 1.161.13 |
| @tanstack/router-ssr-query-core npm · Affected: 1.168.3 | 1.168.7 |
| @tanstack/react-start-client npm · Affected: 1.166.51 | 1.166.55 |
| @tanstack/solid-router-ssr-query npm · Affected: 1.166.18 | 1.166.19 |
| @tanstack/eslint-plugin-router npm · Affected: 1.161.9 | 1.161.13 |
| @tanstack/router-devtools-core npm · Affected: 1.167.6 | 1.167.10 |
| @tanstack/router-devtools-core npm · Affected: 1.167.9 | 1.167.10 |
| @tanstack/router-core npm · Affected: 1.169.5 | 1.169.9 |
| @tanstack/vue-start npm · Affected: 1.167.64 | 1.167.65 |
| @tanstack/router-vite-plugin npm · Affected: 1.166.53 | 1.166.57 |
| @tanstack/start-static-server-functions npm · Affected: 1.166.44 | 1.166.48 |
| @tanstack/start-storage-context npm · Affected: 1.166.38 | 1.166.42 |
| @tanstack/react-start-server npm · Affected: 1.166.58 | 1.166.59 |
| @tanstack/vue-router-ssr-query npm · Affected: 1.166.15 | 1.166.19 |
| @tanstack/history npm · Affected: 1.161.9 | 1.161.13 |
| @tanstack/virtual-file-routes npm · Affected: 1.161.13 | 1.161.14 |
| @tanstack/router-cli npm · Affected: 1.166.49 | 1.166.50 |
| @tanstack/solid-router npm · Affected: 1.169.5 | 1.169.9 |
| @tanstack/react-router-ssr-query npm · Affected: 1.166.18 | 1.166.19 |
| @tanstack/nitro-v2-vite-plugin npm · Affected: 1.154.15 | 1.154.16 |
| @tanstack/router-plugin npm · Affected: 1.167.41 | 1.167.42 |
| @tanstack/vue-start-client npm · Affected: 1.166.49 | 1.166.50 |
| @tanstack/solid-router-ssr-query npm · Affected: 1.166.15 | 1.166.19 |
| @tanstack/vue-router-devtools npm · Affected: 1.166.16 | 1.166.20 |
| @tanstack/solid-start-server npm · Affected: 1.166.57 | 1.166.58 |
| @tanstack/react-start-server npm · Affected: 1.166.55 | 1.166.59 |
| @tanstack/router-plugin npm · Affected: 1.167.38 | 1.167.42 |
| @tanstack/router-utils npm · Affected: 1.161.14 | 1.161.15 |
| @tanstack/react-router npm · Affected: 1.169.5 | 1.169.9 |
| @tanstack/vue-start npm · Affected: 1.167.61 | 1.167.65 |
| @tanstack/router-generator npm · Affected: 1.166.45 | 1.166.49 |
| @tanstack/react-start-client npm · Affected: 1.166.54 | 1.166.55 |
| @tanstack/vue-start-server npm · Affected: 1.166.53 | 1.166.54 |
| @tanstack/vue-router-devtools npm · Affected: 1.166.19 | 1.166.20 |
| @tanstack/zod-adapter npm · Affected: 1.166.12 | 1.166.16 |
| @tanstack/start-plugin-core npm · Affected: 1.169.23 | 1.169.27 |
| @tanstack/arktype-adapter npm · Affected: 1.166.15 | 1.166.16 |
| @tanstack/start-server-core npm · Affected: 1.167.33 | 1.167.37 |
| @tanstack/router-vite-plugin npm · Affected: 1.166.56 | 1.166.57 |
| @tanstack/router-utils npm · Affected: 1.161.11 | 1.161.15 |
| @tanstack/nitro-v2-vite-plugin npm · Affected: 1.154.12 | 1.154.16 |
| @tanstack/vue-router-ssr-query npm · Affected: 1.166.18 | 1.166.19 |
| @tanstack/virtual-file-routes npm · Affected: 1.161.10 | 1.161.14 |
| @tanstack/react-start-rsc npm · Affected: 0.0.47 | 0.0.51 |
| @tanstack/router-devtools npm · Affected: 1.166.19 | 1.166.20 |
| @tanstack/history npm · Affected: 1.161.12 | 1.161.13 |
| @tanstack/solid-router-devtools npm · Affected: 1.166.16 | 1.166.20 |
| @tanstack/react-router npm · Affected: 1.169.8 | 1.169.9 |
| @tanstack/vue-router npm · Affected: 1.169.5 | 1.169.9 |
| @tanstack/solid-start npm · Affected: 1.167.65 | 1.167.69 |
| @tanstack/router-cli npm · Affected: 1.166.46 | 1.166.50 |
| @tanstack/eslint-plugin-router npm · Affected: 1.161.12 | 1.161.13 |
| @tanstack/eslint-plugin-start npm · Affected: 0.0.4 | 0.0.8 |
| @tanstack/solid-start-server npm · Affected: 1.166.54 | 1.166.58 |
| @tanstack/solid-start npm · Affected: 1.167.68 | 1.167.69 |
| @tanstack/solid-start-client npm · Affected: 1.166.50 | 1.166.54 |
| @tanstack/start-plugin-core npm · Affected: 1.169.26 | 1.169.27 |
| @tanstack/start-storage-context npm · Affected: 1.166.41 | 1.166.42 |
| @tanstack/router-core npm · Affected: 1.169.8 | 1.169.9 |
| @tanstack/react-router-ssr-query npm · Affected: 1.166.15 | 1.166.19 |
| @tanstack/arktype-adapter npm · Affected: 1.166.12 | 1.166.16 |
| @tanstack/valibot-adapter npm · Affected: 1.166.12 | 1.166.16 |
| @tanstack/zod-adapter npm · Affected: 1.166.15 | 1.166.16 |
| @tanstack/router-ssr-query-core npm · Affected: 1.168.6 | 1.168.7 |
| @tanstack/start-fn-stubs npm · Affected: 1.161.9 | 1.161.13 |
| @tanstack/react-start npm · Affected: 1.167.71 | 1.167.72 |
| @tanstack/vue-start-server npm · Affected: 1.166.50 | 1.166.54 |
| @tanstack/start-static-server-functions npm · Affected: 1.166.47 | 1.166.48 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-506
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.6 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
References
- https://github.com/TanStack/router/security/advisories/GHSA-g7cv-rxg3-hmpxWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-45321ADVISORY
- https://github.com/TanStack/router/issues/7383WEB
- https://github.com/TanStack/routerPACKAGE
- https://socket.dev/blog/tanstack-npm-packages-compromised-mini-shai-hulud-supply-chain-attackWEB
- https://tanstack.com/blog/npm-supply-chain-compromise-postmortemWEB
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-45321WEB
- https://www.stepsecurity.io/blog/mini-shai-hulud-is-back-a-self-spreading-supply-chain-attack-hits-the-npm-ecosystemWEB
Frequently Asked Questions
- What is CVE-2026-45321?
- Malware in @tanstack/* packages exfiltrates cloud credentials, GitHub tokens, and SSH keys. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.6/10).
- How do I check if my project is affected by CVE-2026-45321?
- CVE-2026-45321 affects @tanstack/react-router-devtools, @tanstack/solid-router-devtools and @tanstack/valibot-adapter (and 39 more). It has a 1.1% probability of exploitation within 30 days (EPSS score). This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, meaning it is being actively exploited in the wild. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-45321 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 63.7% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
This vulnerability is in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild.
Added to KEV catalog: May 27, 2026
Remediation deadline: June 10, 2026
Also Known As
Related CVEs
- CVE-2026-76807CRITICAL
Todoist MCP Server: Browser DNS rebinding lets websites write and delete Todoist data through local MCP server
- CVE-2026-114516CRITICAL
Etherpad: Pre-auth arbitrary file read
- CVE-2026-102989CRITICAL
TanStack Router: Unauthenticated reflected XSS in TanStack Start server-function responses