LowNewsLLM-specific
Claude Code Source Leaked via npm Packaging Error, Anthropic Confirms
- Published
- Record updated
Summary
Anthropic confirmed that internal source code for Claude Code was inadvertently released through a packaging error in version 2.1.88 of its npm package, which contained a source map file exposing nearly 2,000 TypeScript files and over 512,000 lines of code. Anthropic said no sensitive customer data or credentials were exposed, and the leaked codebase has since been mirrored in a public GitHub repository.
Mitigation
Users are advised to immediately downgrade to a safe version and rotate all secrets, in connection with the Axios supply chain attack affecting npm installs or updates of Claude Code on March 31, 2026, between 00:21 and 03:29 UTC. Anthropic said it is rolling out measures to prevent this from happening again.
Related items
- InfoPrompting AI to be ‘thorough’ can drive sandbox escapes, Anthropic saysSame vendor · CSO Online
- InfoDespite doom and gloom headlines, AI attacks are thin on the groundSame vendor · CSO Online
- InfoDrupal Flaw Found by Anthropic Scanner Exploited in AttacksSame vendor · SecurityWeek
- InfoCrowdStrike Accelerates the Shift to the Agentic SOCSame vendor · CrowdStrike Blog
- InfoThree LLM inflection points in twelve monthsSame vendor · Simon Willison's Weblog