ghtier

These write-ups are not threat intelligence and are not kept up to date as an incident develops. They are here to show how each attack worked, so you can find and fix the same techniques in your own setup. For the latest on an incident, read its sources.

← All incidents

Actions cache poisoning (Angular, TanStack)

Ongoing · Ongoing

A fork's pull request ran in a pull_request_target workflow that shares the repository's Actions cache, wrote a poisoned pnpm store under the key the release workflow restores, and when the release ran, the malware took its OIDC token from memory and published 84 malicious TanStack versions.

Access held
T1OIDC ID token: WriteWrite to the Actions cacheCode in the release buildCloud, npm and GitHub credentials
Scale
TanStack: 84 malicious versions across 42 packages
Full summary

GitHub Actions caches are scoped to the repository, and a pull_request_target run uses the base repository's scope, so code from a fork can write entries that workflows on main later restore. On 11 May 2026 an attacker's pull request to TanStack/router triggered bundle-size.yml, which ran on pull_request_target, checked out the pull request's merged code and built it. That code filled the pnpm store and the job saved it to the cache under the exact key release.yml computes from the lockfile. Setting permissions: contents: read did not help: cache writes use a runner token, not GITHUB_TOKEN. That evening two release runs restored the poisoned store. The malware read an OIDC token out of the runner, using the same script as the tj-actions compromise, and published 84 versions of 42 @tanstack packages straight to npm in six minutes. No npm token was stolen and the publish workflow itself was not changed. Adnan Khan had shown the same class earlier in angular/dev-infra, through a branch name put into a shell step and a tool that fills the cache.

How it unfolded

Pick a step to zoom into it. A dashed line is a step the sources do not state. Blue dots are the checklist items that break the step.

Whole path

Untrusted input reaches aprivileged workflowway inRun PR code in a privilegedworkflowtechniqueWrite to the Actions cachebundle-size.yml's runnerPoison a cache the releasebuild restoresescalationCode in the release buildrelease.yml's pnpm storeRead secrets from therunnertechniqueOIDC ID token: Writerelease.yml's OIDC tokenPublish a malicious versionwith a stolen tokentechniqueHide the payload in acommit only its hashreachestechniqueCompromised Action orpackageway inCloud, npm and GitHubcredentialsInstallers' machines, CI

The whole attack, one row per step. Pick a step on the left, or click a box in its row.

Frameworks

Ongoing. First seen May 2026. TanStack: 84 malicious versions across 42 packages (as of 11 May 2026, source). Mapping by ghtier, not yet reviewed. Threat landscape

Sources

Reported by: Adnan Khan