TanStack Unspecified
CVE-2026-45321 is a critical-severity embedded malicious code vulnerability in arktype-adapter from TanStack, with a CVSS 3.1 base score of 9.6 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, but only if a user takes part, for example by opening a link or file. Affected arktype-adapter versions: 1.166.12; 1.166.15. The record does not name a fixed version, so check the vendor advisory. CISA added it to the Known Exploited Vulnerabilities catalogue on May 27, 2026, which means attacks have been observed in the wild, including in ransomware campaigns.
Attackers are already exploiting this vulnerability, according to CISA.
What to do
- Check which version of arktype-adapter you run against the affected versions below, and install the vendor's latest release.
- CISA's required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- Read the advisory on github.com for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
- Because the attack needs a user to take part, warn users about unexpected links and files related to this product until it is patched.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| @tanstack | arktype-adapter | 1.166.12; 1.166.15 | Not stated |
| @tanstack | eslint-plugin-router | 1.161.9; 1.161.12 | Not stated |
| @tanstack | eslint-plugin-start | 0.0.4; 0.0.7 | Not stated |
| @tanstack | history | 1.161.9; 1.161.12 | Not stated |
| @tanstack | nitro-v2-vite-plugin | 1.154.12; 1.154.15 | Not stated |
| @tanstack | react-router | 1.169.5; 1.169.8 | Not stated |
| @tanstack | react-router-devtools | 1.166.16; 1.166.19 | Not stated |
| @tanstack | react-router-ssr-query | 1.166.15; 1.166.18 | Not stated |
| @tanstack | react-start | 1.167.68; 1.167.71 | Not stated |
| @tanstack | react-start-client | 1.166.51; 1.166.54 | Not stated |
| @tanstack | react-start-rsc | 0.0.47; 0.0.50 | Not stated |
| @tanstack | react-start-server | 1.166.55; 1.166.58 | Not stated |
| @tanstack | router-cli | 1.166.46; 1.166.49 | Not stated |
| @tanstack | router-core | 1.169.5; 1.169.8 | Not stated |
| @tanstack | router-devtools | 1.166.16; 1.166.19 | Not stated |
| @tanstack | router-devtools-core | 1.167.6; 1.167.9 | Not stated |
| @tanstack | router-generator | 1.166.45; 1.166.48 | Not stated |
| @tanstack | router-plugin | 1.167.38; 1.167.41 | Not stated |
| @tanstack | router-ssr-query-core | 1.168.3; 1.168.6 | Not stated |
| @tanstack | router-utils | 1.161.11; 1.161.14 | Not stated |
| @tanstack | outer-vite-plugin | 1.166.53; 1.166.56 | Not stated |
| @tanstack | solid-router | 1.169.5; 1.169.8 | Not stated |
| @tanstack | solid-router-devtools | 1.166.16; 1.166.19 | Not stated |
| @tanstack | solid-router-ssr-query | 1.166.15; 1.166.18 | Not stated |
| @tanstack | solid-start | 1.167.65; 1.167.68 | Not stated |
Version data comes from the organisation that assigned the CVE; 35 further products are omitted here. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- RequiredA user must take an action such as opening a file or link.
- Scope
- ChangedThe attack can reach beyond the vulnerable component into other systems.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H. Scored by CNA (github.com).
Official 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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Embedded Malicious Code
The product contains code that appears to be malicious in nature.
How developers prevent this class of flaw
- Remove the malicious code and start an effort to ensure that no more malicious code exists. This may require a detailed review of all code, as it is possible to hide a serious attack in only one or two lines of code. These lines may be located almost anywhere in an application and may have been intentionally obfuscated by the attacker.
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: active, automatable: no, technical impact: total).
- Added to CISA's Known Exploited Vulnerabilities catalogue.
- Deadline for US federal agencies to remediate, set by CISA.
- Record last changed materially (score, affected products, status or references).
References
Advisories
Third-party and government advisories
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-45321US Government Resource
Technical write-ups (may include proof of concept)
- stepsecurity.io/blog/mini-shai-hulud-is-back-a-self-spreading-supply-chain-attack-hits-the-npm-ecosystemExploit, Third Party Advisory
Other references
- github.com/TanStack/router/issues/7383Issue Tracking
Recent Embedded Malicious Code vulnerabilities
- 9.8 Critical severity
- 9.8 Critical severity
- 8.8 High severity
- 9.8 Critical severity
- 10.0 Critical severity
- 9.8 Critical severity
ASUS Live Update Embedded Malicious Code Exploited
Spotted an error? Tell us.