Skip to content
RedCVE

CVE-2026-45321TanStack npm packages supply chain compromise with credential-stealing malware

ExploitedRansomwareTanStackPublished:

CVSS score

9.6

Critical

CVSS 3.1 from github.com

Exploit probability (EPSS)

3.28%

3.28% chance of exploitation in the next 30 days, higher than 88.7% of all CVEs.

CISA KEV

Actively exploited

Added to KEV on 27 May 2026.

US federal deadline to fix: 10 Jun 2026.

Ransomware

In plain words

Malicious versions of 42 @tanstack packages were published to npm on May 11, 2026, using a trusted publishing identity that the attacker obtained through a chain of CI/CD flaws. Developers who installed affected versions of packages such as react-router, history or eslint-plugin-router may have run credential-stealing code, and CISA reports known use in ransomware campaigns. Check your lockfiles for the listed versions, remove them, rotate any secrets present on affected machines or build runners, and follow the vendor advisory.

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: NVD · CNA: security-advisories@github.com

How to fix it, step by step

  1. Treat it as urgent

    Attackers are already exploiting this flaw: CISA added it to its Known Exploited Vulnerabilities list on 27 May 2026.

    US federal agencies must fix it by 10 Jun 2026. It's a sensible deadline for everyone else too.

    CISA reports it has been used in ransomware attacks.

    CISA's full instruction
    Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
  2. Check whether you're affected

    Find every system running Tanstack/arktype-adapter, Tanstack/eslint-plugin-router, Tanstack/eslint-plugin-start, Tanstack/history, Tanstack/nitro-v2-vite-plugin and compare its version with the affected versions.

  3. Apply the vendor's fix

    The official record doesn't name a fixed version. The vendor's advisory describes the fix:

  4. Check for signs of compromise

    Updating closes the flaw but doesn't remove an attacker who got in earlier. Review affected systems for unknown accounts, unusual logins and configuration changes, and use any indicators of compromise the vendor or CISA publish.

Was this useful?

How it can be exploited

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Affected products

Affected productsVersions
TanStack Tanstack/arktype-adapter1.166.12 · 1.166.15
TanStack Tanstack/eslint-plugin-router1.161.9 · 1.161.12
TanStack Tanstack/eslint-plugin-start0.0.4 · 0.0.7
TanStack Tanstack/history1.161.9 · 1.161.12
TanStack Tanstack/nitro-v2-vite-plugin1.154.12 · 1.154.15
TanStack Tanstack/react-router1.169.5 · 1.169.8
TanStack Tanstack/react-router-devtools1.166.16 · 1.166.19
TanStack Tanstack/react-router-ssr-query1.166.15 · 1.166.18
TanStack Tanstack/react-start1.167.68 · 1.167.71
TanStack Tanstack/react-start-client1.166.51 · 1.166.54
TanStack Tanstack/react-start-rsc0.0.47 · 0.0.50
TanStack Tanstack/react-start-server1.166.55 · 1.166.58
TanStack Tanstack/router-cli1.166.46 · 1.166.49
TanStack Tanstack/router-core1.169.5 · 1.169.8
TanStack Tanstack/router-devtools1.166.16 · 1.166.19
TanStack Tanstack/router-devtools-core1.167.6 · 1.167.9
TanStack Tanstack/router-generator1.166.45 · 1.166.48
TanStack Tanstack/router-plugin1.167.38 · 1.167.41
TanStack Tanstack/router-ssr-query-core1.168.3 · 1.168.6
TanStack Tanstack/router-utils1.161.11 · 1.161.14
TanStack Tanstack/router-vite-plugin1.166.53 · 1.166.56
TanStack Tanstack/solid-router1.169.5 · 1.169.8
TanStack Tanstack/solid-router-devtools1.166.16 · 1.166.19
TanStack Tanstack/solid-router-ssr-query1.166.15 · 1.166.18
TanStack Tanstack/solid-start1.167.65 · 1.167.68

Weakness

Timeline

  1. Published:
  2. Added to CISA KEV:
  3. Last modified:

Frequently asked questions

Is CVE-2026-45321 being exploited?

Yes. CISA added CVE-2026-45321 to its Known Exploited Vulnerabilities catalog on 27 May 2026, which means there is evidence of exploitation in the wild. Its EPSS score estimates a 3.3% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2026-45321?

CVE-2026-45321 has a CVSS 3.1 base score of 9.6 (critical).

Which versions are affected?

Tanstack Tanstack/arktype-adapter (1.166.12; 1.166.15), Tanstack Tanstack/eslint-plugin-router (1.161.9; 1.161.12), Tanstack Tanstack/eslint-plugin-start (0.0.4; 0.0.7), Tanstack Tanstack/history (1.161.9; 1.161.12), Tanstack Tanstack/nitro-v2-vite-plugin (1.154.12; 1.154.15), Tanstack Tanstack/react-router (1.169.5; 1.169.8)

Is there a patch for CVE-2026-45321?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.