Skip to content
Info disclosure Write-up Beginner

A source map published half a million lines of Claude Code

A Claude Code release accidentally included a source map that pointed to an archive of internal source code, exposing nearly 2,000 files and about 500,000 lines. An attacker could read internal architecture and unreleased features, though Anthropic said no customer data or credentials were exposed.

medium.com

Published on medium.com

FREE LINK

Devansh Patel, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a release-packaging mistake caused by human error, where a debugging artifact was included in the public npm package.

Impact

The incident exposed readable internal architecture and unreleased features, but Anthropic said no customer data or credentials were exposed.

What the attacker needed

Public npm package; source map included by mistake

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

When developers prepare JavaScript for a website, they often shrink it into a hard-to-read bundle. A source map is a helper file that lets browsers and developers turn that bundle back into the original readable code. If a source map is published by mistake, anyone can download it and see the original code, which may reveal internal details.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.