Cyber Risks · The Hacker News

Claude Code Source Leaked via npm Packaging Error, Anthropic Confirms

Summary: Anthropic confirmed that version 2.1.88 of its Claude Code npm package shipped with a source map file exposing nearly 2,000 TypeScript files and more than 512,000 lines of code, which researcher Chaofan Shou first flagged publicly on X. Anthropic called it a release packaging issue caused by human error rather than a security breach, and the version is no longer downloadable from npm, though the code remains accessible via a public GitHub repository with more than 84,000 stars and 82,000 forks.

What's compelling: Users who installed or updated Claude Code via npm on March 31, 2026, between 00:21 and 03:29 UTC may have pulled a trojanized HTTP client containing a cross-platform remote access trojan, and attackers are already typosquatting internal package names and seeding fake leak repositories that deploy Vidar Stealer and GhostSocks.

Read the original at The Hacker News ↗

Topics
Supply Chain & AppSec
Related
Kitesurf is now open source Cyber Risks · Nov 13, 2026