# Malware in @tanstack/\* packages exfiltrates cloud credentials, GitHub tokens, and SSH keys

Advisory record · `GHSA-g7cv-rxg3-hmpx`

- **Identifiers:** `GHSA-g7cv-rxg3-hmpx` · `CVE-2026-45321`
- **State:** Confirmed
- **Severity:** CVSS 9.6 Critical
- **Critical:** Yes: KEV, CVSS 9+
- **Weakness (CWE):** [CWE-506](https://cwe.mitre.org/data/definitions/506.html)
- **Tags:** [CWE-506](https://agentprime.io/advisories/tag/cwe-506.md)
- **Published:** 12 May 2026
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 12 May 2026, 00:12 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- In CISA’s KEV catalogue since 27 May 2026: it is known to be exploited.
- CVSS score 9.6: 9.0 or more.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

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

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 9.6 Critical, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`, from CNA (GitHub_M)

- **CISA KEV:** Listed since 27 May 2026: known to be exploited. CISA reports use in ransomware campaigns.
- **EPSS:** 0.033, the 88th percentile, on 6 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 12 May 2026. New records show when each source confirmed them.

## Sources

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

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-g7cv-rxg3-hmpx>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-g7cv-rxg3-hmpx/>. Everything for agents: <https://agentprime.io/llms.txt>.
