Executive Summary
In May 2026, CrowdSec suffered a significant data breach when attackers leveraged the TanStack npm supply chain attack (CVE-2026-45321) to compromise a former employee's laptop and steal GitHub credentials. The attackers used these credentials to copy 170 private GitHub repositories containing source code, consensus algorithms, and sensitive data including 83 user email addresses and 51 potential investor details. The breach was discovered in September 2026 when the stolen code appeared on online forums, revealing critical intellectual property and operational thresholds.
This incident exemplifies the growing threat of supply chain attacks targeting developer environments and highlights the cascading impact when credential hygiene practices fail during employee transitions.
Why This Matters Now
Supply chain attacks targeting developer tools have increased 650% since 2025, with npm packages being prime vectors for credential theft. Organizations urgently need zero-trust access controls and automated credential rotation to prevent cascading breaches.
Attack Path Analysis
Attackers compromised TanStack npm packages with malicious code that stole developer credentials including GitHub tokens from infected machines. Using a stolen GitHub OAuth token from a former CrowdSec employee whose access wasn't revoked, attackers copied 170 private repositories containing source code, user email addresses, and investor information. The attack leveraged supply chain compromise for initial access, escalated through stolen OAuth tokens, moved laterally across GitHub repositories, established persistence through token reuse, and exfiltrated sensitive code and data that was later published on online forums.
Kill Chain Progression
This analysis maps confirmed threat intelligence to the full cloud kill chain to show where defensive gaps would emerge as an attack progresses.
Initial Compromise
Description
Malicious versions of 42 TanStack npm packages (CVE-2026-45321) were published containing credential-stealing code that infected developer machines when installed
Related CVEs
CVE-2026-45321
CVSS 9.6Supply chain attack through malicious versions of TanStack npm packages that steal credentials from developers' machines including GitHub tokens, SSH keys, and cloud credentials.
Affected Products:
TanStack TanStack npm packages – 84 malicious versions of 42 packages published May 11, 2026
Exploit Status:
exploited in the wild
MITRE ATT&CK® Techniques
Supply Chain Compromise: Compromise Software Supply Chain
Valid Accounts: Cloud Accounts
Credentials from Password Stores: Keychain
Steal Application Access Token
Data from Information Repositories: Code Repositories
Exfiltration Over Web Service: Exfiltration to Cloud Storage
Unsecured Credentials: Credentials In Files
Potential Compliance Exposure
Mapping incident impact across multiple compliance frameworks.
NYDFS 23 NYCRR 500 – Multi-Factor Authentication
Control ID: 500.12
PCI DSS 4.0 – User Identity Verification
Control ID: 8.2.1
DORA – ICT Third-Party Risk Management
Control ID: Article 11
CISA ZTMM 2.0 – Networks
Control ID: Pillar 3
NIS2 Directive – Cybersecurity Risk Management
Control ID: Article 21
GDPR – Security of Processing
Control ID: Article 32
Sector Implications
Industry-specific impact of the vulnerabilities, including operational, regulatory, and cloud security risks.
Computer Software/Engineering
Supply chain attacks targeting npm packages directly compromise software development environments, exposing source code, credentials, and enabling lateral movement through developer infrastructure.
Computer/Network Security
Security firms face heightened risks as attackers target their repositories to understand detection algorithms, consensus mechanisms, and potentially poison threat intelligence feeds.
Venture Capital/VC
Investment firms' sensitive data exposed through portfolio companies creates privacy risks and potential insider trading concerns when investor contexts are leaked publicly.
Information Technology/IT
IT organizations using TanStack components face credential theft, unauthorized repository access, and need enhanced endpoint protection plus zero trust segmentation controls.
Sources
- CrowdSec Says TanStack npm Attack Led to Copy of 170 Private GitHub Repositorieshttps://thehackernews.com/2026/09/crowdsec-says-tanstack-npm-attack-led.htmlVerified
- TanStack Security Advisory GHSA-g7cv-rxg3-hmpxhttps://github.com/TanStack/router/security/advisories/GHSA-g7cv-rxg3-hmpxVerified
- CrowdSec TanStack Supply Chain Attack Analysishttps://www.crowdsec.net/blog/tanstack-supply-chain-attack-analysisVerified
- Mistral AI Security Advisory MAI-2026-002https://docs.mistral.ai/resources/security-advisories/MAI-2026-002Verified
- OpenAI Response to TanStack npm Supply Chain Attackhttps://openai.com/index/our-response-to-the-tanstack-npm-supply-chain-attack/Verified
Frequently Asked Questions
Cloud Native Security Fabric Mitigations and ControlsCNSF
Based on the attack progression modeled above, these are the defensive controls that would constrain each stage.
Aviatrix Zero Trust CNSF would have constrained the TanStack supply chain attack by limiting lateral movement between developer workstations and GitHub infrastructure, reducing the blast radius of stolen OAuth tokens through segmented access controls.
Control: Cloud Native Security Fabric (CNSF)
Mitigation: Zero trust fabric policies would likely have reduced the scope of credential harvesting by limiting which network resources and external endpoints the compromised developer workstations could communicate with during package installation.
Control: Zero Trust Segmentation
Mitigation: Zero trust segmentation would likely have limited the effectiveness of stolen OAuth tokens by restricting which GitHub resources and repositories the compromised credentials could access based on identity-aware policies.
Control: East-West Traffic Security
Mitigation: East-west traffic controls would likely have constrained the attackers' ability to enumerate and access multiple GitHub repositories by limiting lateral movement between different organizational assets and enforcing microsegmentation policies.
Control: Multicloud Visibility & Control
Mitigation: Multicloud visibility controls would likely have reduced the duration of undetected access by providing enhanced monitoring of cross-platform authentication patterns and identifying anomalous GitHub API usage from unexpected network locations.
Control: Egress Security & Policy Enforcement
Mitigation: Egress security policies would likely have limited the scale of data exfiltration by constraining which external destinations could receive large volumes of repository data and implementing data loss prevention controls for sensitive GitHub content.
While public disclosure of already-exfiltrated data would still occur, the reduced scope of accessible repositories and constrained data volumes would likely limit the overall business impact and competitive intelligence exposure.
Impact at a Glance
Affected Business Functions
- Software Development Operations
- Intellectual Property Protection
- Customer Data Security
- Threat Intelligence Services
Estimated downtime: 3 days
Estimated loss: N/A
Source code from 170 private GitHub repositories including web console code, data science scripts and models, automation scripts, consensus algorithms, and security thresholds. Email addresses of 83 CrowdSec users and contact information with investment context for 51 potential investors from 2020. One AWS SNS credential attempted for unauthorized use.
Recommended Actions
Key Takeaways & Next Steps
- • Implement Zero Trust Segmentation to enforce identity-based policies and least privilege access, preventing unauthorized repository access even with valid tokens
- • Deploy Egress Security & Policy Enforcement to monitor and control outbound data transfers, detecting bulk repository copying and unauthorized exfiltration attempts
- • Enable Multicloud Visibility & Control to provide centralized monitoring of developer tool access patterns and detect anomalous GitHub activity across the organization
- • Establish Threat Detection & Anomaly Response capabilities to baseline normal developer behavior and alert on suspicious bulk data access or credential usage patterns
- • Deploy Cloud Native Security Fabric (CNSF) with inline enforcement to inspect and control supply chain package installations, blocking malicious npm packages before credential theft occurs



