Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsStudyTraining
ProjectsChecklistsAI RankingsNewsletterStatusTagsAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Study
Training
Projects
Checklists
AI Rankings
Newsletter
Status
Tags
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

1154+ Articles
126+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. News
  3. GitHub Links Repo Breach to TanStack npm Supply-Chain Attack
GitHub Links Repo Breach to TanStack npm Supply-Chain Attack
NEWS

GitHub Links Repo Breach to TanStack npm Supply-Chain Attack

GitHub has confirmed that hackers who stole 3,800 internal repositories gained access through a malicious version of the Nx Console VS Code extension...

Dylan H.

News Desk

May 21, 2026
6 min read

Overview

GitHub has formally attributed the breach of 3,800 internal repositories to the TanStack npm supply-chain attack that was disclosed last week. According to GitHub's investigation, the attackers gained access to internal systems through a malicious version of the Nx Console VS Code extension — a popular developer tool that was compromised as part of the broader TanStack package poisoning campaign.

The breach is the latest in a growing chain of attacks linked to the Mini Shai-Hulud / TanStack npm worm, which has been propagating through the JavaScript ecosystem by compromising widely-used npm packages and developer tools.


Incident Timeline

DateEvent
~May 14, 2026TanStack npm supply-chain attack first disclosed — malicious packages propagate via compromised npm maintainer accounts
May 14, 2026OpenAI confirms two employee devices infected via Nx Console VS Code extension
May 15, 2026Grafana breach attributed to the same attack chain — GitHub token stolen after Tanstack compromise
May 20, 2026GitHub confirms breach, acknowledges 3,800 internal repositories were accessed
May 21, 2026GitHub publishes attribution: Nx Console VS Code extension was the infection vector

How the Attack Worked

The TanStack npm supply-chain attack unfolded in multiple stages, each exploiting trust in the JavaScript developer toolchain:

Stage 1: npm Package Compromise

Attackers compromised maintainer accounts for packages within the TanStack ecosystem — a popular family of open-source JavaScript libraries for tables, queries, forms, and routing, widely used in React and Vue applications. A malicious payload was injected into published npm packages.

Stage 2: VS Code Extension Propagation

The malicious npm payload was incorporated into — or bootstrapped from — a backdoored version of the Nx Console VS Code extension. Nx Console is a popular extension for managing Nx monorepos (used heavily in Angular, React, and Node.js workspaces with tens of thousands of installs).

When developers installed or updated the compromised extension, it silently:

  1. Executed the TanStack-derived malicious payload in the developer's VS Code environment
  2. Harvested credentials and tokens stored in the VS Code secrets store and environment
  3. Exfiltrated GitHub authentication tokens found in the developer's git configuration or keychain

Stage 3: GitHub Internal Access

Armed with GitHub employee credentials or GitHub API tokens obtained from compromised developer machines, the attackers:

  1. Authenticated to GitHub's internal systems
  2. Cloned or accessed approximately 3,800 internal GitHub repositories
  3. Exfiltrated code, configuration, and potentially sensitive internal tooling

GitHub has confirmed that customer data was not accessed, but internal tooling, infrastructure code, and proprietary engineering resources were exposed.


Scope of the GitHub Breach

ItemDetail
Repositories accessed~3,800 internal GitHub repositories
Customer data affectedNone confirmed
Employee devices compromisedAt least one confirmed infection vector (Nx Console extension)
Data types at riskInternal tooling, infrastructure configuration, proprietary code
Attack originTanStack npm supply-chain → Nx Console VS Code extension

Connection to the Broader TanStack Attack Chain

GitHub is the latest in a series of high-profile organizations affected by the TanStack supply-chain campaign:

OrganizationImpact
OpenAITwo employee devices infected; macOS updates forced
GrafanaGitHub token stolen via Tanstack attack; codebase downloaded; extortion attempted
GitHub3,800 internal repos accessed via compromised developer credentials
Mistral AICode repositories reportedly offered for sale by attackers
CheckmarxJenkins AST plugin compromised weeks after Kics supply-chain attack
Mini Shai-Hulud targetsTanStack, Mistral AI, guardrails-ai, and other npm packages compromised

Why Supply-Chain Attacks Via Developer Tools Are So Effective

Developer workstations represent one of the highest-value targets in modern attack chains because developers routinely have:

  • Highly privileged access: Production deploy keys, cloud credentials, CI/CD secrets
  • Broad code repository access: Entire codebases, not just individual services
  • Trusted tool execution: IDEs and their extensions run with full local user permissions
  • Credential abundance: SSH keys, API tokens, OAuth tokens, and cloud CLI credentials stored locally

VS Code extensions are particularly attractive attack surfaces because:

  1. Extensions run with full Node.js privileges — not sandboxed
  2. Developers often install extensions without reviewing their source
  3. Extensions have direct access to the VS Code workspace, including environment variables and git configurations
  4. The VS Code extension marketplace has limited vetting compared to npm or browser extension stores

Immediate Actions for Affected Organizations

1. Audit VS Code Extensions

# List all installed VS Code extensions
code --list-extensions
 
# Check Nx Console extension version
code --list-extensions --show-versions | grep nrwl.angular-console

Remove and reinstall from a known-clean source if any extensions were installed during the TanStack attack window (May 12–21, 2026).

2. Rotate All Developer Credentials

# Revoke all GitHub personal access tokens (via GitHub Settings > Developer Settings > Tokens)
# Regenerate SSH keys used for GitHub access
ssh-keygen -t ed25519 -C "your_email@example.com"
 
# Update git remote URLs to use new credentials
git remote set-url origin git@github.com:<org>/<repo>.git

3. Audit GitHub Token Usage

For organizations using GitHub Actions or GitHub API tokens, audit recent API activity for unusual access patterns:

# Using GitHub CLI — list recent audit log events
gh api /orgs/<org>/audit-log?phrase=token --paginate | jq '.[] | {action, actor, created_at}'

4. Check npm Packages for Compromise

# Run npm audit across all projects
npm audit --audit-level=critical
 
# Check for known-compromised TanStack packages (verify against GitHub advisory database)
npm list | grep -E "tanstack|nx|@nrwl"

Defense Recommendations

ControlImplementation
VS Code Extension AllowlistingUse VS Code's extension recommendations and block unapproved extensions in enterprise environments
Credential IsolationStore CI/CD secrets in dedicated secret managers, not developer workstations
Token ScopingGitHub tokens should have minimum necessary scopes — avoid broad repo access tokens
FIDO2 MFAEnforce hardware-key MFA for GitHub organization accounts
npm Package LockingUse npm ci with committed lockfiles — avoid allowing automatic minor/patch updates
Developer EDRDeploy endpoint detection on developer workstations — not just production servers

References

  • BleepingComputer: GitHub links repo breach to TanStack npm supply-chain attack
  • GitHub Security Blog
  • CosmicBytez Labs: Grafana GitHub Breach Exposes Source Code via TanStack npm Attack
  • CosmicBytez Labs: Mini Shai-Hulud Worm Compromises TanStack and More
#GitHub#Supply Chain#TanStack#npm#Data Breach#VS Code#BleepingComputer

Related Articles

Grafana Says Codebase and Other Data Stolen via TanStack Supply Chain Attack

Grafana confirmed attackers stole internal source code and data after a GitHub token compromised in the TanStack npm supply chain attack was never...

4 min read

GitHub Breached — Employee Device Hack Led to Exfiltration of 3,800+ Internal Repos

GitHub is investigating unauthorized access to thousands of internal repositories after an employee device was compromised through the TanStack npm supply...

6 min read

Grafana Breach Caused by Missed Token Rotation After TanStack Attack

Grafana Labs has revealed that its May 2026 source code breach was caused by a single GitHub workflow token that was inadvertently missed during the token...

6 min read
Back to all News