Skip to content
LowNewsLLM-specific

Claude Code source code accidentally leaked in NPM package

Published
Record updated
View JSON

Summary

Anthropic confirmed that a Claude Code release accidentally shipped internal source code, which was first spotted by Chaofan Shou. The leak occurred when version 2.1.88 was briefly published to NPM with a 60 MB cli.js.map file whose sourcesContent field embedded the full source, reconstructing about 1,900 files and 500,000 lines of code. Anthropic says no customer data or credentials were exposed and has issued DMCA takedown notices.

Mitigation

Anthropic says it is rolling out measures to prevent this from happening again. No specific fix or configuration change is described in the source.