
ResearchApr 1, 2026
Anthropic Accidentally Leaks Entire Claude Code Source Code —500K+ Lines Exposed Via npm Map File
Anthropic has suffered a significant security incident, accidentally exposing the entire source code of its Claude Code command-line interface through an exposed map file in the npm package version 2.1.88. Nearly 2,000 TypeScript files and more than 512,000 lines of code were exposed before the leak was discovered and contained.