Theregister Claude Code Source Code Leaked via npm Packaging Error
Article Content
- •Anthropic leaked the entire source code for Claude Code due to a packaging error.
- •The leak includes over 500,000 lines of code and critical architectural details.
- •No sensitive customer data was exposed, but the leak provides competitors with valuable insights.
On March 31, 2026, Anthropic inadvertently exposed the entire source code of its AI tool, Claude Code, by including a 59.8 MB source map file in a public npm package. This leak, caused by human error, allowed access to approximately 1,900 TypeScript files and over 500,000 lines of code, which were quickly mirrored and analyzed online. Anthropic confirmed that no sensitive customer data was involved, but the leak poses a significant risk as competitors can now study the architecture and features of Claude Code. The exposed code includes a sophisticated memory architecture and various undocumented features, potentially enabling rivals to replicate or improve upon Anthropic's technology. The company is taking steps to prevent future incidents and has begun issuing DMCA takedown notices for the leaked code. The incident follows a recent pattern of accidental exposures at Anthropic, raising concerns about their internal security practices.
Ask AI about this cluster
Answers cite the sources they use
Timeline
More articles in this cluster (32)
Following this threat?
Track Anthropic in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.
Free account · no card needed
Continue Reading
Critical Zero-Day Exploited in BeyondTrust Remote Support by China-linked Group A critical vulnerability in BeyondTrust Remote Support, tracked as CVE-2026-102764 with a CVSS score of 9.3, has been exploited by the China-linked espionage group Armory Castle since August 29, 2026. This flaw allows unauthenticated remote attackers to perform file operations, gaining root control and access to…
CISA Warns of Exploited Vulnerabilities in ProFTPD, ONLYOFFICE, Strapi, and More The U.S. Cybersecurity and Infrastructure Security Agency (CISA) added five vulnerabilities to its Known Exploited Vulnerabilities (KEV) catalog, including critical flaws in ProFTPD, ONLYOFFICE Docs, Strapi, Apache Struts, and ISC BIND. These vulnerabilities are being by Chinese actors for cyber espionage, targeting…