Skip to content
LowNewsLLM-specific

Anthropic employee error exposes Claude Code source

Published
Record updated
View JSON

Summary

An Anthropic employee accidentally exposed the full source code of Claude Code by shipping a source map file in an npm package published to Anthropic's open registry account. Security researcher Chaofan Shou publicized the leak on X, and Fortune reported a similar exposure the previous month. Anthropic said no sensitive customer data or credentials were exposed.

Mitigation

Developers should disable source maps in the build/bundler tool, and add the .map files to the .npmignore or the package.json files field to explicitly exclude them. Anthropic said it is rolling out measures to prevent recurrence.