CyberSecBulletin
CVE-2026-45321Exploited in the wildNVD status: Analyzed

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.

Patch now

Attackers are already exploiting this vulnerability, according to CISA.

What to do

  1. Check which version of arktype-adapter you run against the affected versions below, and install the vendor's latest release.
  2. 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.
  3. Read the advisory on github.com for workarounds and exact fixed builds.
  4. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
  5. 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

VendorProductAffected versionsFixed in
@tanstackarktype-adapter1.166.12; 1.166.15Not stated
@tanstackeslint-plugin-router1.161.9; 1.161.12Not stated
@tanstackeslint-plugin-start0.0.4; 0.0.7Not stated
@tanstackhistory1.161.9; 1.161.12Not stated
@tanstacknitro-v2-vite-plugin1.154.12; 1.154.15Not stated
@tanstackreact-router1.169.5; 1.169.8Not stated
@tanstackreact-router-devtools1.166.16; 1.166.19Not stated
@tanstackreact-router-ssr-query1.166.15; 1.166.18Not stated
@tanstackreact-start1.167.68; 1.167.71Not stated
@tanstackreact-start-client1.166.51; 1.166.54Not stated
@tanstackreact-start-rsc0.0.47; 0.0.50Not stated
@tanstackreact-start-server1.166.55; 1.166.58Not stated
@tanstackrouter-cli1.166.46; 1.166.49Not stated
@tanstackrouter-core1.169.5; 1.169.8Not stated
@tanstackrouter-devtools1.166.16; 1.166.19Not stated
@tanstackrouter-devtools-core1.167.6; 1.167.9Not stated
@tanstackrouter-generator1.166.45; 1.166.48Not stated
@tanstackrouter-plugin1.167.38; 1.167.41Not stated
@tanstackrouter-ssr-query-core1.168.3; 1.168.6Not stated
@tanstackrouter-utils1.161.11; 1.161.14Not stated
@tanstackouter-vite-plugin1.166.53; 1.166.56Not stated
@tanstacksolid-router1.169.5; 1.169.8Not stated
@tanstacksolid-router-devtools1.166.16; 1.166.19Not stated
@tanstacksolid-router-ssr-query1.166.15; 1.166.18Not stated
@tanstacksolid-start1.167.65; 1.167.68Not 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.

More Embedded Malicious Code vulnerabilities (CWE-506)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: active, automatable: no, technical impact: total).
  3. Added to CISA's Known Exploited Vulnerabilities catalogue.
  4. Deadline for US federal agencies to remediate, set by CISA.
  5. Record last changed materially (score, affected products, status or references).

References

Third-party and government advisories

Technical write-ups (may include proof of concept)

Other references

Recent Embedded Malicious Code vulnerabilities

Spotted an error? Tell us.