Anthropic Accidentally Leaks Claude Source Code

The leak was caused by human error, not a security breach, the company said.
Anthropic Accidentally Leaks Claude Source Code
Pages from the Anthropic website and the company's logos are displayed on a computer screen in New York on Feb. 26, 2026. AP Photo/Patrick Sison
|Updated:
0:00

Anthropic said on March 31 that it accidentally leaked internal source code for its popular artificial intelligence (AI) chatbot, Claude Code.

The leak stemmed from version 2.1.88 of the @anthropic-ai/claude-code package on the npm registry. It included a 59.8-megabyte source map file that exposed roughly 512,000 lines of unobfuscated TypeScript code across about 1,900 to 2,300 files, an Anthropic spokesperson said in a statement. The code quickly spread to GitHub repositories that have been copied tens of thousands of times.

Kimberly Hayek
Kimberly Hayek
Author
Kimberly Hayek is a reporter for The Epoch Times. She covers California news and has worked as an editor and on scene at the U.S.-Mexico border during the 2018 migrant caravan crisis.