When Your Source Maps Ship Your Source: Lessons from Anthropic's Claude Code Leak
On 31 March 2026, Anthropic shipped version 2.1.88 of their Claude Code CLI to npm. Inside the package sat a 59.8 MB JavaScript source map file — a debugging artefact that mapped the minified production bundle back to the original TypeScript. That source map pointed to a publicly accessible zip archive on Anthropic’s Cloudflare R2 storage bucket. Within hours, the archive — roughly 1,900 TypeScript files and over 512,000 lines of code — had been downloaded, backed up, and forked more than 41,500 times on GitHub.
This was not a breach. No customer data was exposed. No credentials leaked. Anthropic called it “a release packaging issue caused by human error,” and that description is accurate. But the incident is worth examining closely, because it exposes a class of risk that most organisations building and shipping software at pace have not adequately addressed: what happens when your build pipeline becomes the vulnerability?
[Read More . . .]