AI news story

Anthropic Accidentally Exposes Claude Code Source via npm Source Map File

Anthropic's Claude Code CLI had its full TypeScript source exposed after a source map file was accidentally included in ve

  • LLMs
  • Source: InfoQ
  • Published: 2026-04-07

Editor's take

Anthropic inadvertently revealed the complete TypeScript source code for its Claude Code CLI through an npm package. This incident underscores the persistent security vulnerabilities within the software supply chain, even for prominent AI developers. The exposure affects not only Anthropic's internal development practices but also raises concerns about the security posture of third-party tools that integrate with large language models.

The leak is significant given Claude's position as a competitor to models like OpenAI's GPT-4 and Google's Gemini. While the exposed code pertains to the CLI rather than the core LLM, it offers insights into Anthropic's development methodology and potential attack vectors. Developers relying on this CLI now face questions about the integrity of their own codebases.

Future scrutiny will focus on Anthropic's internal security audit processes and the speed of their remediation. The broader AI industry must also consider how to better secure the interfaces and developer tools surrounding LLMs, moving beyond just the model architectures themselves. Any subsequent vulnerabilities discovered originating from this leak would significantly impact trust.