TanStack Supply Chain Attack Compromised CrowdSec GitHub Repositories
CrowdSec disclosed that an attacker accessed approximately 170 private GitHub repositories by exploiting credentials stolen during the TanStack npm supply chain attack.

CrowdSec, a cybersecurity firm, has revealed that an attacker gained access to around 170 of its private GitHub repositories on May 22. The breach was facilitated through the compromised account of a former employee whose laptop was infected during a supply chain attack targeting the popular TanStack npm packages.
The incident came to light when the stolen code, along with sensitive information including the email addresses of 83 CrowdSec users and details of 51 potential investors from 2020, appeared on an online forum on September 16. CrowdSec emphasized that the attacker only copied code, did not alter any files, and did not access its core infrastructure or databases.
The root cause traces back to May 11, when 84 malicious versions of 42 TanStack npm packages were published, a compromise tracked as CVE-2026-45321. When developers installed these tainted packages, malicious code executed on their machines, stealing credentials such as GitHub tokens, SSH keys, and cloud credentials. CrowdSec confirmed that the former employee's GitHub OAuth token, compromised through this attack, was used to access its repositories approximately 11 days later.
CrowdSec had maintained the former employee's GitHub access to allow for the completion of pending work. The company subsequently revoked the account on May 25, before it was aware of the data exfiltration. While other access for the former employee had been removed earlier, the lingering GitHub token proved to be the vector for the code theft. CrowdSec noted that the token left no discernible trace in their logs and was no longer active when the breach was discovered.
GitHub's support team assisted CrowdSec in tracing the token's history, confirming the link to the TanStack compromise. While CrowdSec stated that none of the malicious TanStack packages were found directly within its own codebase, the compromised credentials from the former employee's machine were the direct enabler of the repository access. The company also confirmed that its developers' machines were scanned and found to be clean.
This attack is part of a broader pattern of exploitation stemming from the TanStack compromise, affecting other organizations as well. Mistral AI and OpenAI have also reported instances where developer devices were compromised, leading to unauthorized access to internal code repositories. These incidents underscore the far-reaching consequences of supply chain attacks that compromise development tools.
The leaked code from CrowdSec's private repositories includes its web console, data science scripts, automation tools, and the consensus algorithm used for its security engine's blocklists. While the code is reportedly four months old and has since been updated, it does reveal previously non-public details about the thresholds used in its consensus algorithm. CrowdSec stated that the blocklist remains difficult to poison and that it regularly updates these thresholds.
CrowdSec has taken steps to mitigate the impact, including rotating exposed credentials and implementing endpoint protection software on developer laptops. The company plans to notify the affected users and investors and has apologized for the incident. This incident highlights the critical need for robust credential management and timely revocation of access, especially in the wake of widespread supply chain compromises.