Anthropic Claude Code leaked online due to packaging error on March 13

Anthropic accidentally released 1,900 files of Claude Code source code. This is the second security issue for the company in a short time.

The Incident

An accidental release of internal source code for Anthropic's Claude Code tool has surfaced, providing an unintended window into the workings of the popular AI coding assistant. The exposure, attributed to a packaging error involving a source map file in a recent npm package update, inadvertently made accessible internal files detailing the system's architecture. This event marks the second notable security lapse for the company in a short span, following the discovery of internal documents related to an upcoming AI model stored in a public data cache.

Anthropic Accidentally Exposes Source Code for Claude Code - CNET - 1

Anthropic has confirmed the leak, stating, "> Earlier today, a Claude Code release included some internal source code." The company has since moved to remove the affected software and pull the code from public view, while also issuing copyright takedown requests to platforms hosting the leaked material. Despite these efforts, mirrors of the code continue to circulate online, with one X post detailing the leak garnering significant attention.

Read More: Emoji Movie Quizzes in 2026 Test Film Knowledge Using Pictures

Anthropic Accidentally Exposes Source Code for Claude Code - CNET - 2

The leaked code is reported to comprise approximately 1,900 files and over 512,000 lines of code, specifically related to Claude Code, an agentic tool designed to operate within developer environments. The exposed details offer potential insights into how the AI manages tool usage, permissions, and workflows, including its four-stage context management pipeline.

Anthropic Accidentally Exposes Source Code for Claude Code - CNET - 3

Implications and Concerns

The incident raises questions regarding the security protocols at Anthropic, a company that has positioned itself as a leader in AI safety. Security analysts have voiced concerns, suggesting that the leaked code could allow adversaries to study and potentially exploit vulnerabilities within Claude Code's data processing. "> Attackers can now study and fuzz exactly how data flows through Claude Code’s four-stage context management pipeline and craft payloads designed to survive compaction, effectively persisting a backdoor across an arbitrarily long session," noted AI cybersecurity firm Straiker.

Read More: Pakistan Tops Global Terrorism Index as 2025 Deaths Rise 6%

Anthropic Accidentally Exposes Source Code for Claude Code - CNET - 4

For competitors and developers, the exposure could offer valuable understanding of Anthropic's development approach for its viral coding tool. Some speculate that developers may attempt to create open-source versions of Claude Code's agentic harness based on the leaked material.

Background

Claude Code has seen a substantial rise in popularity, particularly following a surge in downloads linked to its "vibe coding" capabilities during the holiday season. The tool is part of Anthropic's broader Claude AI suite, known for its versatility in tasks ranging from question answering and content generation to language translation and code writing. The company also recently garnered attention for a Super Bowl ad campaign that critiqued rival OpenAI's advertising practices on its free and low-cost ChatGPT plans.

This latest exposure follows closely on the heels of reports detailing Anthropic's inadvertent revelation of internal files, including drafts and details about an upcoming AI model codenamed "Mythos" or "Capybara," which were found in a publicly accessible data repository. These repeated security oversights come at a time when Anthropic's paid subscriber base is reportedly growing, and its products have been associated with significant market shifts across various tech sectors.

Read More: Businesses Use New 'Context Engineering' to Make AI Agents More Reliable

Frequently Asked Questions

Q: What happened with Anthropic's Claude Code on March 13?
On March 13, Anthropic accidentally released internal source code for its Claude Code tool. This happened because of a mistake when updating a software package.
Q: How much code was leaked from Anthropic's Claude Code?
About 1,900 files and over 512,000 lines of code for Claude Code were leaked. This code shows how the AI works and manages tasks.
Q: Why is the Anthropic Claude Code leak a problem?
The leaked code could allow attackers to find and use weak spots in the AI. It also gives competitors a look at Anthropic's technology.
Q: What is Anthropic doing about the Claude Code leak?
Anthropic has removed the code and is trying to get it taken down from websites. This is the second security issue for the company recently.
Q: Who is affected by the Anthropic Claude Code leak?
Users of Claude Code, other AI companies, and developers are affected. Attackers might use the code to harm the system, while others might learn from it.