All articles
Software supply chain securityAwarely Monitor editorial team8 min

CrowdSec and TanStack: a former employee’s token

On 18 September 2026, CrowdSec published an analysis of its own incident: roughly 170 of the company’s private GitHub repositories were downloaded on 22 May, between 05:52:29 and 06:01:33 UTC. The access came through the GitHub account of a developer who had left the company but remained in the organisation, using an OAuth token that no longer existed by the time the breach was discovered.

That former colleague’s laptop had been compromised on 11 May, in the supply-chain attack on TanStack’s npm packages. Roughly four months passed between the initial compromise and discovery: CrowdSec learned of it on 16 September, when the code appeared publicly. It is a chain with three links, and every one of them exists in most organisations that write code.

Link one: an npm package published under a legitimate identity

According to the NVD record for CVE-2026-45321, on 11 May 2026 between approximately 19:20 and 19:26 UTC, 84 malicious versions across 42 @tanstack packages were published to the npm registry. Each affected package received exactly two malicious versions, a few minutes apart.

The important part is not the volume but how they were published. The publishes were authenticated via the legitimate GitHub Actions OIDC trusted-publisher binding for TanStack/router, and the publish workflow itself was not modified. In other words, the control that was supposed to prevent exactly this kind of abuse is the one the attack went through.

The attacker chained three known problem classes: a pull_request_target misconfiguration, which lets code from a fork run without approval; GitHub Actions cache poisoning across the trust boundary between fork and base; and extraction of the OIDC token directly from the runner process’s memory. TanStack’s published postmortem describes concretely how the bundle-size.yml workflow used pull_request_target, how the payload poisoned the cache, and how the legitimate release workflow later restored it.

It is worth noting what worked, too: the compromise was publicly detected within 20–26 minutes by a StepSecurity researcher, all versions were deprecated in about one hour and 43 minutes, and npm removed the tarballs within roughly four and a half hours. The response was fast. The CrowdSec case shows what can happen in that interval anyway.

Link two: what an install-time payload looks for

According to TanStack’s postmortem, the payload that ran on npm install harvested credentials from predictable locations: AWS IMDS and Secrets Manager, GCP metadata, Kubernetes service-account tokens, Vault tokens, the user’s .npmrc file, and GitHub tokens. It exfiltrated them, then attempted to propagate by republishing other packages maintained by compromised users.

That list is effectively an inventory of everything a development workstation can reach. This is not an attack on a server; it is an attack on the context in which the install command runs. That is why TanStack’s recommendation for anyone who installed the affected versions on 11 May is explicit: rotate AWS, GCP, Kubernetes, Vault, GitHub, npm and SSH credentials reachable from the install host.

The CVSS 3.1 score is 9.6, on the vector AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H. The UI:R element means user interaction is required, and that interaction is installing the package. CISA added the CVE to the Known Exploited Vulnerabilities catalog on 27 May with a 10 June deadline, and the entry records known ransomware campaign use as "Known" — rarer than the "Unknown" that most entries carry.

Link three: the account nobody closed

This is where the CrowdSec case becomes instructive. The developer had left the company, but his account remained in the GitHub organisation. The credential used was not a password and not a personal access token, but an OAuth token — an authorisation granted to an application at some point, the kind that does not appear on the usual checklist when somebody leaves.

CrowdSec notes the token no longer existed when the incident was discovered, which means the reconstruction had to come from elsewhere. The Git data showed activity from an IP address in Toronto, Canada. The window is tight: nine minutes, on 22 May. The company names an actor linked to BreachForums; we do not reproduce the handle here, and the naming is the victim’s, not an independent confirmation.

What was copied, per CrowdSec’s 17 September statement: the source code for its SaaS console, some AWS Cloud routines, some connectors and automations. Reporting of the fuller disclosure additionally describes data-science scripts and models, deployment tooling, and the consensus algorithm for its blocklists.

What did not happen, according to the company: the account was used only to copy code, production infrastructure and databases were not accessed, and neither code nor the CI/CD pipeline was modified; the exposed account performed only fetch operations. CrowdSec says it hunted for any token, credential or leak that could enable lateral movement and found, in its words, "none so far", and that it immediately rotated all required tokens and credentials. These are the victim’s statements about its own environment, not independently verified findings — and that "so far" is theirs, not ours.

A discrepancy worth flagging

CrowdSec published two pieces a day apart, and they do not say quite the same thing. The 17 September statement says that no client data, login or password, name, organisation or anything else was leaked. Reporting of the 18 September communication instead describes email addresses of 83 CrowdSec users, and names, email addresses and investment context for 51 potential investors from 2020.

We could not reconcile the two wordings from the primary pages we read, so we present both with their sources. It is possible the second communication expanded the initial assessment; it is also possible that "client data" means something narrower to the company than addresses found inside repositories. We do not speculate which.

The reason this is worth mentioning is not to catch anyone out. It is that in your own incident assessment, the first communication almost always understates, and the team reading it needs to know which date the statement they are relying on comes from.

What to check in your own organisation

  • ▸Enumerate the identities a leaver holds in external systems, not only in the corporate directory: the GitHub or GitLab organisation, npm, the container registry, the cloud provider, SaaS development tooling. Disabling the Active Directory account touches none of them.
  • ▸Look for OAuth authorisations separately, not just personal tokens. An application a user authorised at some point stays valid independently of their password and their MFA, and that is exactly the credential type in this case.
  • ▸Check whether your organisation requires active membership for private repository access, and whether member reviews happen on a schedule. An account left in the organisation is access, even if nobody considers the person an employee any more.
  • ▸If you ever installed affected packages in the relevant period, verify that the recommended rotation was actually completed on every host, laptops and CI runners included, not only in production. This case shows what stays open when rotation stops at servers.
  • ▸Treat development workstations as privileged-access systems, because that is what they are. They hold tokens to code, registries, cloud and orchestration, and a single dependency install touches all of them.
  • ▸Note how long you retain audit logs from GitHub or its equivalent. CrowdSec could reconstruct a nine-minute window from four months earlier; the useful question is whether you could.

Minimum evidence for closure

Awarely Monitor helps track exposures, owners, exceptions, and decision evidence through closure. It does not manage GitHub accounts, revoke tokens, inventory dependencies, or detect malicious code in packages. Offboarding, authorisation review, and credential rotation remain with your identity platform, your development process, and your vendor controls.

  • ▸The offboarding procedure with the full list of external systems it covers, and execution evidence for recent leavers.
  • ▸An inventory of active organisation-level OAuth authorisations, with a review schedule and an owner.
  • ▸The result of the code-organisation membership review: who still has access, and on what basis.
  • ▸The credential-rotation scope after any dependency compromise: what was rotated, on which hosts, when, and what was knowingly left unrotated, with the reason.
  • ▸Audit-log retention for code platforms, and the period you can actually reconstruct.
  • ▸The link between the supply-chain incident, the affected assets, the owner, and retained evidence through review closure.

How to monitor CVEs and get alerts for products in your inventory