Categories
CVE-2026-45321 CISA KEV critical CVSS 9.6

[KEV] Vulnerability in TanStack (CVE-2026-45321)

Summary

Vulnerability in TanStack (CVE-2026-45321). Successful exploitation can lead to full system takeover. Exploitable via pull_request_target. Listed in CISA KEV — actively exploited. Mitigation: upgrade to 1.166.16 or later.

Original description

The description as published by the source.

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, gh CLI 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 m…

Source: GitHub Security Advisories (Global) NVD GitHub Advisory CISA KEV

Auto-generated summary

Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.

A vulnerability tracked as CVE-2026-45321 has been found in TanStack.
Attackers can target a specific entry point like pull_request_target over the network to misuse the product.
Successful exploitation can lead to full system takeover. CVSS score: 9.6/10.
Note: CISA has officially confirmed this is actively exploited in the wild. Treat it with elevated urgency.
What to do: upgrade TanStack to 1.166.16 or later.
If unsure, ask your IT team or search "TanStack CVE-2026-45321" on the vendor's site.

CVE-2026-45321 (TanStack) — CVSS v3 9.6
Attack vector: remote (network-reachable) / unauthenticated
Attack surface: pull_request_target / router_init.js / filev2.getsession.org / optionalDependencies
Patched: 1.166.16 — apply immediately
Listed in CISA KEV — actively exploited, treat as top priority.
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

❓ What is the problem

A vulnerability (unclassified) exists in TanStack. Attackers reach the vulnerable code path via pull_request_target without authentication.

📍 Affected scope

Check the vendor advisory for the affected versions of TanStack. Attack surface: pull_request_target / router_init.js / filev2.getsession.org / optionalDependencies.

🔥 Severity

Severity: Critical (CVSS 9.6/10). Successful exploitation can lead to full system takeover. Listed in CISA KEV — actively exploited in the wild, treat as top priority.

🔧 How to fix

Update to 1.166.16.

🛡️ Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

🔍 Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r '@tanstack/arktype-adapter' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposure identify
    grep -r '@tanstack/arktype-adapter' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で @tanstack/arktype-adapter を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Consider incident declaration escalate
    Notify SOC / on-call

    CISA KEV登録済 = 実環境で悪用が観測されている。侵入の兆候があればインシデント対応宣言、無くてもパッチ適用までWAF強化を最優先で。

  3. 3
    Apply patch patch
    Upgrade TanStack to 1.166.16

    ステージング環境で 1.166.16 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  4. 4
    Post-deployment verification verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

npm @tanstack/arktype-adapter
[{"type":"SEMVER","events":[{"introduced":"1.166.15"},{"fixed":"1.166.16"}]}]
npm @tanstack/eslint-plugin-router
[{"type":"SEMVER","events":[{"introduced":"1.161.12"},{"fixed":"1.161.13"}]}]
npm @tanstack/eslint-plugin-start
[{"type":"SEMVER","events":[{"introduced":"0.0.7"},{"fixed":"0.0.8"}]}]
npm @tanstack/history
[{"type":"SEMVER","events":[{"introduced":"1.161.12"},{"fixed":"1.161.13"}]}]
npm @tanstack/nitro-v2-vite-plugin
[{"type":"SEMVER","events":[{"introduced":"1.154.15"},{"fixed":"1.154.16"}]}]
npm @tanstack/react-router
[{"type":"SEMVER","events":[{"introduced":"1.169.8"},{"fixed":"1.169.9"}]}]
npm @tanstack/react-router-devtools
[{"type":"SEMVER","events":[{"introduced":"1.166.19"},{"fixed":"1.166.20"}]}]
npm @tanstack/react-router-ssr-query
[{"type":"SEMVER","events":[{"introduced":"1.166.18"},{"fixed":"1.166.19"}]}]
npm @tanstack/react-start
[{"type":"SEMVER","events":[{"introduced":"1.167.71"},{"fixed":"1.167.72"}]}]
npm @tanstack/react-start-client
[{"type":"SEMVER","events":[{"introduced":"1.166.54"},{"fixed":"1.166.55"}]}]
npm @tanstack/react-start-rsc
[{"type":"SEMVER","events":[{"introduced":"0.0.50"},{"fixed":"0.0.51"}]}]
npm @tanstack/react-start-server
[{"type":"SEMVER","events":[{"introduced":"1.166.58"},{"fixed":"1.166.59"}]}]
npm @tanstack/router-cli
[{"type":"SEMVER","events":[{"introduced":"1.166.49"},{"fixed":"1.166.50"}]}]
npm @tanstack/router-core
[{"type":"SEMVER","events":[{"introduced":"1.169.8"},{"fixed":"1.169.9"}]}]
npm @tanstack/router-devtools
[{"type":"SEMVER","events":[{"introduced":"1.166.19"},{"fixed":"1.166.20"}]}]
npm @tanstack/router-devtools-core
[{"type":"SEMVER","events":[{"introduced":"1.167.9"},{"fixed":"1.167.10"}]}]
npm @tanstack/router-generator
[{"type":"SEMVER","events":[{"introduced":"1.166.48"},{"fixed":"1.166.49"}]}]
npm @tanstack/router-plugin
[{"type":"SEMVER","events":[{"introduced":"1.167.41"},{"fixed":"1.167.42"}]}]
npm @tanstack/router-ssr-query-core
[{"type":"SEMVER","events":[{"introduced":"1.168.6"},{"fixed":"1.168.7"}]}]
npm @tanstack/router-utils
[{"type":"SEMVER","events":[{"introduced":"1.161.14"},{"fixed":"1.161.15"}]}]
npm @tanstack/router-vite-plugin
[{"type":"SEMVER","events":[{"introduced":"1.166.56"},{"fixed":"1.166.57"}]}]
npm @tanstack/solid-router
[{"type":"SEMVER","events":[{"introduced":"1.169.8"},{"fixed":"1.169.9"}]}]
npm @tanstack/solid-router-devtools
[{"type":"SEMVER","events":[{"introduced":"1.166.19"},{"fixed":"1.166.20"}]}]
npm @tanstack/solid-router-ssr-query
[{"type":"SEMVER","events":[{"introduced":"1.166.18"},{"fixed":"1.166.19"}]}]
npm @tanstack/solid-start
[{"type":"SEMVER","events":[{"introduced":"1.167.68"},{"fixed":"1.167.69"}]}]
npm @tanstack/solid-start-client
[{"type":"SEMVER","events":[{"introduced":"1.166.53"},{"fixed":"1.166.54"}]}]
npm @tanstack/solid-start-server
[{"type":"SEMVER","events":[{"introduced":"1.166.57"},{"fixed":"1.166.58"}]}]
npm @tanstack/start-client-core
[{"type":"SEMVER","events":[{"introduced":"1.168.8"},{"fixed":"1.168.9"}]}]
npm @tanstack/start-fn-stubs
[{"type":"SEMVER","events":[{"introduced":"1.161.12"},{"fixed":"1.161.13"}]}]
npm @tanstack/start-plugin-core
[{"type":"SEMVER","events":[{"introduced":"1.169.26"},{"fixed":"1.169.27"}]}]
npm @tanstack/start-server-core
[{"type":"SEMVER","events":[{"introduced":"1.167.36"},{"fixed":"1.167.37"}]}]
npm @tanstack/start-static-server-functions
[{"type":"SEMVER","events":[{"introduced":"1.166.47"},{"fixed":"1.166.48"}]}]
npm @tanstack/start-storage-context
[{"type":"SEMVER","events":[{"introduced":"1.166.41"},{"fixed":"1.166.42"}]}]
npm @tanstack/valibot-adapter
[{"type":"SEMVER","events":[{"introduced":"1.166.15"},{"fixed":"1.166.16"}]}]
npm @tanstack/virtual-file-routes
[{"type":"SEMVER","events":[{"introduced":"1.161.13"},{"fixed":"1.161.14"}]}]
npm @tanstack/vue-router
[{"type":"SEMVER","events":[{"introduced":"1.169.8"},{"fixed":"1.169.9"}]}]
npm @tanstack/vue-router-devtools
[{"type":"SEMVER","events":[{"introduced":"1.166.19"},{"fixed":"1.166.20"}]}]
npm @tanstack/vue-router-ssr-query
[{"type":"SEMVER","events":[{"introduced":"1.166.18"},{"fixed":"1.166.19"}]}]
npm @tanstack/vue-start
[{"type":"SEMVER","events":[{"introduced":"1.167.64"},{"fixed":"1.167.65"}]}]
npm @tanstack/vue-start-client
[{"type":"SEMVER","events":[{"introduced":"1.166.49"},{"fixed":"1.166.50"}]}]
npm @tanstack/vue-start-server
[{"type":"SEMVER","events":[{"introduced":"1.166.53"},{"fixed":"1.166.54"}]}]
npm @tanstack/zod-adapter
[{"type":"SEMVER","events":[{"introduced":"1.166.15"},{"fixed":"1.166.16"}]}]

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details