📊 Full opportunity report: Three Public Vulnerabilities. Chained. on ThorstenMeyerAI.com — validation score, market gap, and execution plan.
TL;DR
In May 2026, attackers exploited a chain of three publicly documented vulnerabilities to compromise TanStack npm packages. The attack was executed within minutes, highlighting the speed of AI-augmented supply-chain exploits. This incident underscores the challenge of defending against well-understood, rapidly weaponized vulnerabilities.
On May 11, 2026, attackers exploited a chain of three publicly documented vulnerabilities to publish malicious versions of TanStack npm packages within six minutes. The attack was carried out using GitHub Actions and OAuth trust relationships, without stealing npm tokens, by exfiltrating credentials via an in-memory OIDC token. This incident highlights how publicly available security research can be weaponized swiftly and effectively.
The attack involved chaining three known vulnerabilities: the pull_request_target “Pwn Request” pattern, cache poisoning across trust boundaries, and OIDC token extraction from GitHub Actions runners. Each vulnerability was independently documented in public security research before 2026, with the latest being from March 2025. The attacker created a malicious fork of TanStack/router on May 10, then opened a pull request on May 11, triggering automated workflows that allowed malicious code to be injected and executed.
Despite the TanStack team’s security measures, including 2FA and OIDC trusted publishing, the chain of vulnerabilities allowed the attacker to forge an OIDC token, exfiltrate credentials, and publish malicious package versions. The attack did not involve npm token theft or workflow compromise but exploited trust boundaries between the fork, the base repository, and the npm registry. The incident is part of a broader wave of supply-chain compromises, with TanStack among over 160 packages affected in May 2026.
Three public vulnerabilities.
Chained.
The TanStack npm compromise of May 11, 2026 — published research recombined into working tradecraft, weaponized faster than defenders deploy mitigations.
84 malicious versions across 42 packages. Six-minute publish window. No npm tokens stolen. OIDC minted in memory and exfiltrated via Session Protocol. Three vulnerabilities chained — each documented in public research 12-24 months before the attack. Same date as the GTIG zero-day disclosure. The composition is the attack surface.
Each bridges the trust boundary the others assumed.
PR fork code crossing into base-repo cache. Base-repo cache crossing into release-workflow runtime. Release-workflow runtime crossing into npm registry write access. The composition only works because each vulnerability bridges the trust boundary the others assumed.
pull_request_target for fork PRs and checked out the fork’s PR-merge ref to run a build. Bypasses first-time-contributor approval gate. Author attempted trust split but missed that actions/cache@v5‘s post-job save is not gated by permissions:. Cache scope is per-repo, shared across triggers.Linux-pnpm-store-${hashFiles('**/pnpm-lock.yaml')} — exact match. actions/cache@v5 post-step saves poisoned store to that key. Restored entirely as designed when release.yml next runs on push to main.id-token: write for legitimate npm OIDC trusted publishing. Poisoned cache invokes attacker binaries: locate Runner.Worker via /proc/*/cmdline, dump memory via /proc//maps + /proc//mem , extract OIDC token, POST to registry.npmjs.org. Bypasses workflow’s Publish Packages step entirely.The attacker did not invent novel tradecraft. They recombined published research. Verbatim Python script — attribution comment preserved — from the March 2025 tj-actions disclosure. Every defensive research publication becomes attacker reference material within 12-24 months.
software supply chain security tools
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
May 10 17:16 fork. May 11 19:50 detection.
From the attacker creating a renamed fork (deliberately evading fork-list searches) through the cache poisoning phase, the detonation phase, and the rapid external detection by Ashish Kurmi at StepSecurity. The TanStack postmortem published the complete root cause analysis publicly within hours.
PHASE
65bf499d authored by fabricated identity claude (NOT real Anthropic Claude). [skip ci] prefix suppresses CI on push. Adds packages/history/vite_setup.mjs — ~30,000-line bundled JS payload.PREP
pull_request_target. No first-time-contributor approval — pull_request_target bypasses that gate. pr.yml blocked.TRIGGER
65bf499d on PR head. bundle-size.yml’s benchmark-pr job checks out refs/pull/7378/merge, runs pnpm install + pnpm nx run @benchmarks/bundle-size:build. Executes fork-controlled vite_setup.mjs.EXEC
Linux-pnpm-store-6f9233a50def742c09fde54f56553d6b449a535adf87d4083690539f49ae4da11 (1.1 GB) saved for TanStack/router, scoped to refs/heads/main. Keyed to match what release.yml will compute on next push.ACTIVE
b1c061af). Visible PR diff is 0-file no-op. PR closed and branch deleted in same minute. Cache poison persists. PR appears benign in retrospective review./proc/*/cmdline, dumps memory, extracts OIDC token, POSTs to registry.npmjs.org. Bypasses defined Publish Packages step entirely.EXEC
@tanstack/history@1.161.12 etc. Six minutes between the two publish waves. Workflow status: failure (tests broke; publish still happened).BLAST
DETECTION
COMPLETE
GitHub Actions security monitoring
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
160+ packages. One worm. Same threat actor.
The TanStack compromise is one node in the broader Mini Shai-Hulud campaign by threat group TeamPCP — the same actor behind LiteLLM PyPI (March 2026), Bitwarden CLI npm, SAP CAP npm, and Lightning PyPI (April 30, 2026). Self-propagating worm pattern. First documented npm worm with valid SLSA Build Level 3 attestations.
May 2026 wave
weekly downloads
compromised May 12
fork → detection
registry.npmjs.org/-/v1/search?text=maintainer: → republish with same injection. Active operational campaign as of May 12, 2026.OIDC token exfiltration detection tools
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
IOCs · copy-pasteable for hunting queries.
The TanStack postmortem published comprehensive IOCs. Defenders should hunt for these across their environments. The attacker forged a “claude” identity using claude@users.noreply.github.com — not the real Anthropic Claude Code GitHub App. This identity-confusion tactic deserves specific attention in git-log audits.
bun run tanstack_runner.js && exit 1 on install — payload runs, then optional dep “fails” gracefully.router_init.js (~2.3 MB, package root, not in files array). Also: tanstack_runner.js per Socket analysis.https://litter.catbox.moe/h8nc9u.js, https://litter.catbox.moe/7rrc6l.mjs. Secondary exfil via legitimate-looking GitHub GraphQL API traffic.git log --all --author=claude@users.noreply.github.com across all repos. Force-push revert if found.zblgg (id 127806521) · voicproducoes (id 269549300 · account created 2026-03-19 — fresh account, public repos named “A Mini Shai-Hulud has Appeared”). Attacker fork: github.com/zblgg/configuration (renamed). Workflow runs: 25613093674 · 25691781302.npm package security scanner
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Installed it? Rotate. Maintain packages? Audit.
Three response tracks. If you installed an affected version on May 11: treat your host as compromised. If you maintain OSS with similar workflow patterns: audit pull_request_target immediately. If you consume the npm ecosystem at enterprise scale: deploy install-time monitoring and lockfile pinning.
- Rotate AWS, GCP, Azure, Kubernetes service-account tokens, Vault tokens, npm
~/.npmrc, GitHub tokens, SSH private keys - Review GitHub Actions runs after 2026-05-11T19:20Z for unexpected npm publish events
- Check outbound connections to
filev2.getsession.org·seed*.getsession.org - Check downstream propagation — if your packages were published during a CI run that installed compromised version, those may also be compromised
- Audit
~/.claude/+.vscode/tasks.json· removerouter_runtime.js,setup.mjs git log --all --author=claude@users.noreply.github.com· revert if found- Run
npm token list· revoke unrecognized tokens
- Audit pull_request_target workflows immediately · never check out fork-submitted code without explicit approval gates
- Pin third-party action refs to commit SHAs ·
actions/checkout@8e5e7e5ab8...not@v6 - Separate cache scopes for trusted vs untrusted contexts · explicit
restore-keysandkeypatterns - Consider moving from OIDC trusted publisher to short-lived classic tokens with manual review
- Add internal alerting on npm publishes · fire on any publish that doesn’t originate from expected workflow step
- Audit other repos for the same bundle-size.yml-style pattern
- Restrict
id-token: writeto only the publish step that needs it
- Deploy npm package monitoring at install time · Socket / StepSecurity / Snyk · Socket flagged TanStack in 6 minutes
- Lockfile-pinned dependencies don’t auto-pull new versions · only consumers installing during the publish window were affected
- Audit lockfiles for
github:URLoptionalDependencies· unusual for production deps, exact pattern used here - CI/CD secret rotation automation · 30-90 day schedule regardless of incident status
- Treat provenance attestations as one layer, not sole verification · Mini Shai-Hulud produces valid Build L3 attestations on malicious packages
- Establish IR playbooks for OSS supply-chain compromise scenarios
Three pieces of public security research. Twelve months between the latest and the attack. Zero novel attacker tradecraft. A competent maintainer team with 2FA and OIDC trusted publishing — compromised through a chain that no individual vulnerability in their stack would have enabled. The composition is the attack surface.
Implications for Supply-Chain Security in 2026
This incident demonstrates that publicly documented vulnerabilities, when chained together, can be weaponized rapidly against even security-conscious projects. The attack exemplifies how the proliferation of open-source code and automation increases the attack surface. It underscores the need for faster mitigation strategies and highlights the risk posed by AI-augmented offensive capabilities that can assemble these chains in real-time. For developers and organizations, it signals that relying solely on existing security measures is insufficient against well-orchestrated, research-based exploits.
Public Research and the Evolving Attack Surface
Over the past year, multiple public security research findings have detailed vulnerabilities in GitHub Actions and npm workflows, including the pull_request_target pattern (documented by GitHub Security Lab), cache poisoning (by Adnan Khan), and OIDC token extraction (by StepSecurity). Each of these findings was published well before the May 2026 attack, providing attacker tradecraft that was quickly weaponized. The incident reflects a broader trend where open-source security research inadvertently supplies tools for sophisticated attacks, especially as AI accelerates attack composition and deployment.
Notably, the same day as the TanStack incident, Google Threat Intelligence disclosed an AI-built zero-day in the wild, illustrating a convergence of AI-augmented offensive techniques across different threat vectors. The May 2026 supply-chain wave has impacted over 160 packages, emphasizing the systemic nature of this risk.
“The TanStack incident is a clear example of how publicly documented vulnerabilities can be chained to produce a highly effective supply-chain attack, executed faster than defenders can deploy mitigations.”
— Thorsten Meyer
Remaining Unknowns and Ongoing Investigations
While the technical chain has been reconstructed, details about the attacker’s full operational scope, whether additional vulnerabilities were exploited, and the precise extent of compromised repositories remain under investigation. It is not yet clear if other packages or ecosystems were similarly targeted in the same campaign, or if additional mitigations are needed to prevent future chaining of known vulnerabilities.
Future Mitigation Strategies and Industry Response
Security teams are expected to enhance detection of chained vulnerabilities, accelerate deployment of mitigations, and review trust boundaries in CI/CD pipelines. The incident underscores the urgency for automated security testing that can keep pace with attacker tradecraft. Industry-wide, there will likely be increased focus on securing supply chains, revising trust models, and possibly redefining best practices around open-source contributions and automation workflows.
Key Questions
How did the attacker chain these vulnerabilities so quickly?
The attacker exploited publicly documented vulnerabilities, which allowed rapid assembly of attack tradecraft, combined with automation via GitHub Actions to minimize manual effort and execution time.
Were any npm tokens stolen during the attack?
No, the attack did not involve npm token theft. Instead, credentials were exfiltrated via in-memory OIDC tokens using Session Protocol, which was not protected by stolen tokens.
What can developers do to protect their projects?
Developers should review trust boundaries, disable or restrict the use of pull_request_target workflows, implement stricter code review for forks, and monitor for unusual activity in CI/CD pipelines.
Is this attack an isolated incident?
No, it is part of a broader wave of supply-chain compromises in May 2026, affecting over 160 packages, with similar techniques documented in prior public research.
Source: ThorstenMeyerAI.com