2 min read
OpenAI TanStack incident exposes rising software supply chain risk
Mara Ellis
May 25, 2026
On May 11, 2026, TanStack, a widely used open-source JavaScript library ecosystem, was hit by a software supply-chain compromise involving its npm packages.
What happened
According to TanStack’s postmortem, an attacker chained a risky GitHub Actions workflow pattern, cache poisoning across a fork-to-base repository trust boundary, and extracting an OpenID Connect token from a runner process. The result was the publication of 84 malicious versions across 42 @tanstack packages between 19:20 and 19:26 UTC.
The malicious code ran during package installation and was designed to harvest credentials from developer and continuous integration environments, including cloud credentials, Kubernetes tokens, Vault tokens, npm credentials, GitHub tokens, and SSH private keys. GitHub’s advisory tied the incident to CVE-2026-45321 and described the malware as credential-stealing code inside @tanstack packages.
OpenAI later said that exposure to the compromised library affected two employee devices in its corporate environment. The press release noted, “This incident occurred during our phased deployment and rollout of these controls, and the two impacted employee devices did not have the updated configurations that would have prevented the download of the newly observed package containing malware.” At its conclusion, the report noted that, “This incident reflects a broader shift in the threat landscape: attackers are increasingly targeting shared software dependencies and development tooling rather than any single company.”
In the know
The attacker abused trusted developer automation rather than breaking in through an obvious front door. GitHub Actions is a system developers use to test code, build software, and publish updates automatically. A fork is an outside copy of a project, often used when someone wants to suggest a change to it. TanStack says the attacker used a risky workflow pattern in which code from an external fork crossed into a more trusted project environment. Cache poisoning is a way for the attacker to leave a bad file in a shared storage area used by later automated jobs.
When TanStack’s real release process ran, it picked up the poisoned cache as if it were normal. The OpenID Connect token was like a temporary digital pass proving that the release job had permission to publish packages. Once the malicious code reached the runner, it grabbed that pass and used it to publish malicious npm package versions through a trusted route.
Each piece looked limited on its own, yet together they moved from outside code to trusted release infrastructure. A health care cybersecurity scoping review captures the broader risk well: “The complex health care supply chain is also a target.”
Why it matters
OpenAI’s conclusion matters because it moves the story away from a narrow breach narrative and toward a deeper supply-chain warning. OpenAI noted, “attackers are increasingly targeting shared software dependencies and development tooling rather than any single company.” TanStack’s postmortem shows why, as attackers did not need to attack every downstream user directly.
They compromised trusted software infrastructure upstream, leading to 84 malicious package versions across 42 @tanstack/* packages. GitHub’s advisory says the malware was designed to steal cloud credentials, GitHub tokens, npm credentials, Kubernetes tokens, Vault tokens, and SSH keys from developer and continuous integration environments. For healthcare organizations, the lesson is direct.
Care these days depends on vendors, cloud services, application programming interfaces, analytics tools, patient communication systems, billing platforms, and software libraries. A weakness in one shared dependency can create risk across many organizations at once.
The PLOS One study on software supply chain security supports this point, explaining how software supply chains create risk because of their “complex structure and dependence on third-party and open-source components,” with attacks posing “serious risks to the integrity and security of software systems.”
See also: HIPAA Compliant Email: The Definitive Guide (2026 Update)
FAQs
What is a JavaScript library ecosystem?
A JavaScript library ecosystem is a group of related reusable code tools that developers use to build websites, apps, and software features faster.
What is a fork-to-base repository trust boundary?
A fork-to-base repository trust boundary is the security line between an outside copy of a code project and the main trusted project where official code changes happen.
What are npm packages?
npm packages are reusable bundles of JavaScript code that developers download and use instead of writing every feature from scratch.
Subscribe to Paubox Weekly
Every Friday we bring you the most important news from Paubox. Our aim is to make you smarter, faster.
