logo

Claude Code Source Leaked via npm Packaging Error, Anthropic Confirms

ID: 4c510184-fe64-58a3-b7cd-11c095950fdc

STIX ID: report--4c510184-fe64-58a3-b7cd-11c095950fdc

Feed Name: The Hacker News

Threat Score
78/100

Date Published: 2026-04-01

Date Updated: 2026-04-24

Author: [email protected] (The Hacker News)

...
...

Anthropic accidentally published Claude Code's source code in an npm package source map, making ~2,000 TypeScript files publicly available and revealing internal architectures and covert features; although the company says no customer data was exposed, the leak enabled researchers and attackers to analyze internals. Concurrently, a potentially trojanized axios package was published and may have been downloaded during a narrow window, and adversaries have typosquatted internal npm package names to set up dependency-confusion or malicious updates, creating a significant supply-chain and operational security risk.

Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.