LIVE LOG · recorded complete source-check dates between October 14 and November 30, 2026; excludes entries with incomplete or unverified source checks · site updated Nov 12, 2026, 12:09 AM ET

← All incidents

Claude Code npm 2.1.88 shipped a source map that exposed the CLI's source code

Incident · Claude Code · MEDIUM

Incident dateMar 30, 2026, 22:36 UTC per npm registry metadata (reported Mar 31)
DisclosedMar 31, 2026 (Chaofan Shou on X; Anthropic statement to press)
Added hereOct 14, 8:55 PM ET
Last verifiedOct 28, 2026

Summary

Version 2.1.88 of the @anthropic-ai/claude-code npm package included a large source map file (59.8 MB, per VentureBeat) that let anyone rebuild the CLI's TypeScript source, more than 512,000 lines in almost 2,000 files. Researcher Chaofan Shou pointed it out on X and copies spread on GitHub. Anthropic said no sensitive customer data or credentials were involved or exposed, and called it a release packaging issue caused by human error, not a security breach. Version 2.1.88 is no longer on npm. This exposed Anthropic's own code, not user data.

Severity

MEDIUM Medium: a large exposure of proprietary source code, but per Anthropic no customer data or credentials were involved, and it is not a vulnerability in the tool.

Kit, our email provider, gets your address only to send the newsletter. Every email has an unsubscribe link. Privacy policy.

Timeline

  1. Mar 30, 2026, 6:36 PM ET (22:36 UTC)
    Claude Code 2.1.88 is published to npm with the source map included, per npm registry metadata.
  2. Mar 31, 2026
    Chaofan Shou flags it on X; the code is mirrored on GitHub.
  3. Mar 31, 2026
    Anthropic confirms in a statement to VentureBeat, CNBC and other outlets (quoted by Ars Technica): packaging error caused by human error, no customer data or credentials exposed.

How it happened

A source map links shipped JavaScript back to the original source and can embed the full source text. Including it in the public npm package exposed the whole CLI codebase. Same-day reporting also covered a separate, unrelated attack on the axios npm package; VentureBeat advised anyone who installed Claude Code via npm between 00:21 and 03:29 UTC on Mar 31 to check lockfiles for axios 1.14.1 or 0.30.4. That was a different incident, not part of this leak.

How to check your app

Sources

Corrections and updates

  1. Oct 15, 2026
    Corrected the incident date: npm registry metadata dates the 2.1.88 release to Mar 30, 2026, 22:36 UTC; we had listed Mar 31 with no exact time. Added the npm registry as a source.
  2. Oct 28, 2026
    Re-checked against all four sources. Moved the first timeline row to the npm publish time (Mar 30, 2026, 6:36 PM ET) to match the incident date, and dropped the file name cli.js.map, which none of our sources gives; VentureBeat gives the map's size, 59.8 MB.
Cite this entry
Title
Claude Code npm 2.1.88 shipped a source map that exposed the CLI's source code
Added
Oct 14, 2026
URL
https://vibeincidents.com/incidents/claude-code-npm-sourcemap-leak/
Suggested citation
VibeIncidents. "Claude Code npm 2.1.88 shipped a source map that exposed the CLI's source code." Oct 14, 2026. https://vibeincidents.com/incidents/claude-code-npm-sourcemap-leak/