@tanstack arktype-adapter
Malware in 42 @tanstack/* packages exfiltrates cloud credentials, GitHub tokens, and SSH keys
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 versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- 1.166.12
- 1.166.15
- 1.161.9
- 1.161.12
- 0.0.4
- 0.0.7
- 1.161.9
- 1.161.12
- 1.154.12
- 1.154.15
- 1.169.5
- 1.169.8
- 1.166.16
- 1.166.19
- 1.166.15
- 1.166.18
- 1.167.68
- 1.167.71
- 1.166.51
- 1.166.54
- 0.0.47
- 0.0.50
- 1.166.55
- 1.166.58
- 1.166.46
- 1.166.49
- 1.169.5
- 1.169.8
- 1.166.16
- 1.166.19
- 1.167.6
- 1.167.9
- 1.166.45
- 1.166.48
- 1.167.38
- 1.167.41
- 1.168.3
- 1.168.6
- 1.161.11
- 1.161.14
- 1.166.53
- 1.166.56
- 1.169.5
- 1.169.8
- 1.166.16
- 1.166.19
- 1.166.15
- 1.166.18
- 1.167.65
- 1.167.68
- 1.166.50
- 1.166.53
- 1.166.54
- 1.166.57
- 1.168.5
- 1.168.8
- 1.161.9
- 1.161.12
- 1.169.23
- 1.169.26
- 1.167.33
- 1.167.36
- 1.166.44
- 1.166.47
- 1.166.38
- 1.166.41
- 1.166.12
- 1.166.15
- 1.161.10
- 1.161.13
- 1.169.5
- 1.169.8
- 1.166.16
- 1.166.19
- 1.166.15
- 1.166.18
- 1.167.61
- 1.167.64
- 1.166.46
- 1.166.49
- 1.166.50
- 1.166.53
- 1.166.12
- 1.166.15
- >= 1.166.12, < 1.166.16
Fixed in 1.166.16
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.161.9, < 1.161.13
Fixed in 1.161.13
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 0.0.4, < 0.0.8
Fixed in 0.0.8
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.161.9, < 1.161.13
Fixed in 1.161.13
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.154.12, < 1.154.16
Fixed in 1.154.16
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.169.5, < 1.169.9
Fixed in 1.169.9
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.16, < 1.166.20
Fixed in 1.166.20
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.15, < 1.166.19
Fixed in 1.166.19
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.167.68, < 1.167.72
Fixed in 1.167.72
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.51, < 1.166.55
Fixed in 1.166.55
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 0.0.47, < 0.0.51
Fixed in 0.0.51
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.55, < 1.166.59
Fixed in 1.166.59
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.46, < 1.166.50
Fixed in 1.166.50
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.169.5, < 1.169.9
Fixed in 1.169.9
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.16, < 1.166.20
Fixed in 1.166.20
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.167.6, < 1.167.10
Fixed in 1.167.10
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.45, < 1.166.49
Fixed in 1.166.49
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.167.38, < 1.167.42
Fixed in 1.167.42
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.168.3, < 1.168.7
Fixed in 1.168.7
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.161.11, < 1.161.15
Fixed in 1.161.15
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.53, < 1.166.57
Fixed in 1.166.57
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.169.5, < 1.169.9
Fixed in 1.169.9
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.16, < 1.166.20
Fixed in 1.166.20
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.15, < 1.166.19
Fixed in 1.166.19
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.167.65, < 1.167.69
Fixed in 1.167.69
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.50, < 1.166.54
Fixed in 1.166.54
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.54, < 1.166.58
Fixed in 1.166.58
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.168.5, < 1.168.9
Fixed in 1.168.9
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.161.9, < 1.161.13
Fixed in 1.161.13
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.169.23, < 1.169.27
Fixed in 1.169.27
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.167.33, < 1.167.37
Fixed in 1.167.37
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.44, < 1.166.48
Fixed in 1.166.48
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.38, < 1.166.42
Fixed in 1.166.42
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.12, < 1.166.16
Fixed in 1.166.16
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.161.10, < 1.161.14
Fixed in 1.161.14
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.169.5, < 1.169.9
Fixed in 1.169.9
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.16, < 1.166.20
Fixed in 1.166.20
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.15, < 1.166.19
Fixed in 1.166.19
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.167.61, < 1.167.65
Fixed in 1.167.65
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.46, < 1.166.50
Fixed in 1.166.50
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.50, < 1.166.54
Fixed in 1.166.54
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.12, < 1.166.16
Fixed in 1.166.16
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.15, < 1.166.16
Fixed in 1.166.16
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.161.12, < 1.161.13
Fixed in 1.161.13
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 0.0.7, < 0.0.8
Fixed in 0.0.8
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.161.12, < 1.161.13
Fixed in 1.161.13
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.154.15, < 1.154.16
Fixed in 1.154.16
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.169.8, < 1.169.9
Fixed in 1.169.9
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.19, < 1.166.20
Fixed in 1.166.20
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.18, < 1.166.19
Fixed in 1.166.19
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.167.71, < 1.167.72
Fixed in 1.167.72
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.54, < 1.166.55
Fixed in 1.166.55
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 0.0.50, < 0.0.51
Fixed in 0.0.51
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.58, < 1.166.59
Fixed in 1.166.59
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.49, < 1.166.50
Fixed in 1.166.50
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.169.8, < 1.169.9
Fixed in 1.169.9
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.19, < 1.166.20
Fixed in 1.166.20
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.167.9, < 1.167.10
Fixed in 1.167.10
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.48, < 1.166.49
Fixed in 1.166.49
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.167.41, < 1.167.42
Fixed in 1.167.42
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.168.6, < 1.168.7
Fixed in 1.168.7
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.161.14, < 1.161.15
Fixed in 1.161.15
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.56, < 1.166.57
Fixed in 1.166.57
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.169.8, < 1.169.9
Fixed in 1.169.9
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.19, < 1.166.20
Fixed in 1.166.20
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.18, < 1.166.19
Fixed in 1.166.19
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.167.68, < 1.167.69
Fixed in 1.167.69
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.53, < 1.166.54
Fixed in 1.166.54
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.57, < 1.166.58
Fixed in 1.166.58
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.168.8, < 1.168.9
Fixed in 1.168.9
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.161.12, < 1.161.13
Fixed in 1.161.13
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.169.26, < 1.169.27
Fixed in 1.169.27
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.167.36, < 1.167.37
Fixed in 1.167.37
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.47, < 1.166.48
Fixed in 1.166.48
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.41, < 1.166.42
Fixed in 1.166.42
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.15, < 1.166.16
Fixed in 1.166.16
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.161.13, < 1.161.14
Fixed in 1.161.14
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.169.8, < 1.169.9
Fixed in 1.169.9
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.19, < 1.166.20
Fixed in 1.166.20
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.18, < 1.166.19
Fixed in 1.166.19
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.167.64, < 1.167.65
Fixed in 1.167.65
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.49, < 1.166.50
Fixed in 1.166.50
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.53, < 1.166.54
Fixed in 1.166.54
from GitHub Security Advisory GHSA-g7cv-rxg3-hmpx
- >= 1.166.15, < 1.166.16
Fixed in 1.166.16
from GitHub Security Advisory 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.
Upgrade @tanstack/react-start to 1.167.72 or later.
Upgrade @tanstack/react-start-client to 1.166.55 or later.
Upgrade @tanstack/react-start-rsc to 0.0.51 or later.
Upgrade @tanstack/react-start-server to 1.166.59 or later.
Upgrade @tanstack/router-cli to 1.166.50 or later.
Upgrade @tanstack/router-core to 1.169.9 or later.
Upgrade @tanstack/router-devtools to 1.166.20 or later.
Upgrade @tanstack/router-devtools-core to 1.167.10 or later.
Upgrade @tanstack/router-generator to 1.166.49 or later.
Upgrade @tanstack/router-plugin to 1.167.42 or later.
Upgrade @tanstack/router-ssr-query-core to 1.168.7 or later.
Upgrade @tanstack/router-utils to 1.161.15 or later.
Upgrade @tanstack/router-vite-plugin to 1.166.57 or later.
Upgrade @tanstack/solid-router to 1.169.9 or later.
Upgrade @tanstack/solid-router-devtools to 1.166.20 or later.
Upgrade @tanstack/solid-router-ssr-query to 1.166.19 or later.
Upgrade @tanstack/solid-start to 1.167.69 or later.
Upgrade @tanstack/solid-start-client to 1.166.54 or later.
Upgrade @tanstack/solid-start-server to 1.166.58 or later.
Upgrade @tanstack/start-client-core to 1.168.9 or later.
Upgrade @tanstack/start-fn-stubs to 1.161.13 or later.
Upgrade @tanstack/start-plugin-core to 1.169.27 or later.
Upgrade @tanstack/start-server-core to 1.167.37 or later.
Upgrade @tanstack/start-static-server-functions to 1.166.48 or later.
Upgrade @tanstack/start-storage-context to 1.166.42 or later.
Upgrade @tanstack/valibot-adapter to 1.166.16 or later.
Upgrade @tanstack/virtual-file-routes to 1.161.14 or later.
Upgrade @tanstack/vue-router to 1.169.9 or later.
Upgrade @tanstack/vue-router-devtools to 1.166.20 or later.
Upgrade @tanstack/vue-router-ssr-query to 1.166.19 or later.
Upgrade @tanstack/vue-start to 1.167.65 or later.
Upgrade @tanstack/vue-start-client to 1.166.50 or later.
Upgrade @tanstack/vue-start-server to 1.166.54 or later.
Upgrade @tanstack/zod-adapter to 1.166.16 or later.
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.
Upgrade @tanstack/react-start to 1.167.72 or later.
Upgrade @tanstack/react-start-client to 1.166.55 or later.
Upgrade @tanstack/react-start-rsc to 0.0.51 or later.
Upgrade @tanstack/react-start-server to 1.166.59 or later.
Upgrade @tanstack/router-cli to 1.166.50 or later.
Upgrade @tanstack/router-core to 1.169.9 or later.
Upgrade @tanstack/router-devtools to 1.166.20 or later.
Upgrade @tanstack/router-devtools-core to 1.167.10 or later.
Upgrade @tanstack/router-generator to 1.166.49 or later.
Upgrade @tanstack/router-plugin to 1.167.42 or later.
Upgrade @tanstack/router-ssr-query-core to 1.168.7 or later.
Upgrade @tanstack/router-utils to 1.161.15 or later.
Upgrade @tanstack/router-vite-plugin to 1.166.57 or later.
Upgrade @tanstack/solid-router to 1.169.9 or later.
Upgrade @tanstack/solid-router-devtools to 1.166.20 or later.
Upgrade @tanstack/solid-router-ssr-query to 1.166.19 or later.
Upgrade @tanstack/solid-start to 1.167.69 or later.
Upgrade @tanstack/solid-start-client to 1.166.54 or later.
Upgrade @tanstack/solid-start-server to 1.166.58 or later.
Upgrade @tanstack/start-client-core to 1.168.9 or later.
Upgrade @tanstack/start-fn-stubs to 1.161.13 or later.
Upgrade @tanstack/start-plugin-core to 1.169.27 or later.
Upgrade @tanstack/start-server-core to 1.167.37 or later.
Upgrade @tanstack/start-static-server-functions to 1.166.48 or later.
Upgrade @tanstack/start-storage-context to 1.166.42 or later.
Upgrade @tanstack/valibot-adapter to 1.166.16 or later.
Upgrade @tanstack/virtual-file-routes to 1.161.14 or later.
Upgrade @tanstack/vue-router to 1.169.9 or later.
Upgrade @tanstack/vue-router-devtools to 1.166.20 or later.
Upgrade @tanstack/vue-router-ssr-query to 1.166.19 or later.
Upgrade @tanstack/vue-start to 1.167.65 or later.
Upgrade @tanstack/vue-start-client to 1.166.50 or later.
Upgrade @tanstack/vue-start-server to 1.166.54 or later.
Upgrade @tanstack/zod-adapter to 1.166.16 or later.
References
- Vendor advisory github.com/TanStack/router/security/advisories…
Timeline
Days relative to CVE publicationFirst public PoC 13 h after publication; added to CISA KEV 15 days after publication. First PoC: Yomisana/are-you-get-tanstack-attack (created 12 May 2026, found by us: backfilled).
PoC repositories
Found on GitHub.3 PoCs · 9 pending
PoCs 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Yomisana/are-you-get-tanstack-attack | 12 May 2026 +13 h | 0 | PoC via PoC Index |
| renewablehacking/CVE-2026-45321-Tanstack | 25 May 2026 +14 d | 0 | PoC |
| 7whyex/CVE-2026-45321-Tanstack | 25 Jun 2026 +44 d | 0 | PoC |
Pending 9
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| ry-allan/tanstack-compromise-checker | 12 May 2026 +9 h | 0 | Pending · mkdir /quarantine/ry-allan__tanstack-compromise-checker-a397054c658a: permission denied |
| Caixa-git/tanstack-shield | 12 May 2026 +20 h | 0 | Pending · mkdir /quarantine/Caixa-git__tanstack-shield-e8ee5f0c3156: permission denied |
| qi-scape/scan-shai-hulud | 12 May 2026 +20 h | 1 | Pending · mkdir /quarantine/qi-scape__scan-shai-hulud-98a67d296b15: permission denied |
| shayr1/shai-hulud-scan | 12 May 2026 +24 h | 1 | Pending · mkdir /quarantine/shayr1__shai-hulud-scan-d8a3012ddae3: permission denied |
| Intrudify/mini-shai-hulud-scanner | 13 May 2026 +1.5 d | 3 | Pending · mkdir /quarantine/Intrudify__mini-shai-hulud-scanner-be7ed314f36d: permission denied |
| fabriziosalmi/tanstack-compromise-checker | 16 May 2026 +4.3 d | 2 | Pending · mkdir /quarantine/fabriziosalmi__tanstack-compromise-checker-5663b3945306: permission denied |
| digi4care/shai-scan | 16 May 2026 +4.4 d | 0 | Pending · mkdir /quarantine/digi4care__shai-scan-0fc6e104e19f: permission denied |
| nkopylov/tanscript-exploit-check | 18 May 2026 +6.4 d | 1 | Pending · mkdir /quarantine/nkopylov__tanscript-exploit-check-b11308f4ef13: permission denied |
| prashanthnataraj/mini-shai-hulud-detector | 20 May 2026 +9 d | 0 | Pending · mkdir /quarantine/prashanthnataraj__mini-shai-hulud-detector-d744675e8af3: permission denied |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.