Anthropic confirms it leaked 512,000 lines of Claude Code source code – spilling some of its biggest secrets


  • Anthropic employee accidentally leaked Claude Code source via npm map file
  • Leak revealed 1,900 TypeScript files with 500K+ lines of code, quickly mirrored on GitHub
  • Anthropic confirmed that no customer data was exposed, calling it a packaging error amid recent vulnerabilities like ShadowPrompt and Cloudy Day

An anthropic employee accidentally leaked the source code for one of the most popular Artificial Intelligence (AI) assistants out there – Claude Code.

Security researcher Chaofan Shou wrote on X saying “Claude Code source code has been leaked via a map file in their npm registry!” The tweet itself has been viewed more than 30 million times so far, with numbers rising rapidly, showing just how popular the tool really is.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top