Skip to content
Submit incident
AII-1000-65079
ReportedReported by fewer than three independent publishers, with no official finding.

Anthropic Claude Code source code leaked via source map in npm package

Anthropic's Claude Code npm package version 2.1.88 accidentally included a source map file that exposed proprietary TypeScript source code. The leak was discovered on March 31, 2026, and subsequently spread across GitHub before being removed following Anthropic's DMCA takedown notices.

31 March 2026 Β· Anthropic Β· Intellectual property and appropriation
31 March 2026
AII-1000-650792 sources ↓
Quick facts
Category
Intellectual property and appropriation
Country
United States
Source
itmedia.co.jp
Date
31 March 2026
Drafted by
Raidu Incident Detection

What happened

Anthropic's Claude Code version 2.1.88 npm package accidentally contained a source map file, exposing TypeScript source code on March 31, 2026.

The exposed code spread across GitHub, with security researcher Chaofan Xiao flagging the issue on X. GitHub subsequently removed approximately 8,100 repositories after Anthropic filed a DMCA takedown notice.

Reported impact

Anthropic stated no customer confidential data or authentication information was leaked. Developers analyzed the memory structure and attempted to reimplement the code in Python using clean-room design to avoid copyright issues.

Index analysis

Once leaked code became widely accessible, complete containment proved difficult. The exposed source code could enable vulnerability discovery and mimicry of tool design and implementation patterns by third parties.

Governance controls

Anthropic described the incident as a human error in release packaging and stated it was implementing preventive measures. The company filed DMCA takedown requests to remove the code from public repositories.

Classification

Category
Intellectual property and appropriation
Industry
Digital security
Country
United States
Harm status
Actual harm
Intent
Unintentional
Timing
Post-deployment
Harmed
Business
Failure modes
Data leak
Consequences
Content removal
AI systems
Claude Code

Sources and evidence

This record was researched and written by the Index, based on the following original reporting.

itmedia.co.jp
Anthropic Claude Code source code leaked via source map in npm package
itmedia.co.jp
Anthropic Claude Code source code leaked via source map in npm package
Oct 2026Sony and Warner Sue Anthropic Over Unauthorized Training on Copyrighted MusicAllegedIntellectual property and appropriationΠ£ΠšΠ Π†ΠΠ€ΠžΠ ΠœSep 2026Biologist alleges Claude AI used unpublished research in enzyme discoveryAllegedIntellectual property and appropriationAnadolu AjansΔ±CumhuriyetHaberler+1Sep 2026US government accuses six Chinese AI firms of stealing US AI modelsConfirmedIntellectual property and appropriationダむダヒンド・γ‚ͺγƒ³γƒ©γ‚€γƒ³ζ―Žζ—₯ζ–°θžζ±δΊ¬ζ–°θž TOKYO Web+1Sep 2026Authors dispute publishers' claims on Anthropic copyright settlement paymentsWell documentedIntellectual property and appropriationThe New York TimesTechCrunchYahoo! FinanceAug 2026AI Companies Accused of Destroying Books for Model TrainingAllegedIntellectual property and appropriationAxiosCBS NewsCommon Dreams+1