Claude Code Source Map Exposes 1,900 Source Files

A source map published with the Claude Code npm package allows roughly 1,900 source files to be reconstructed from a minified build. The investigation examines how the CLI recognizes an existing installation through signals such as device IDs and hardware UUIDs.

Claude Code Source Map Exposes 1,900 Source Files

Key points

  • The npm package contained cli.Js.Map alongside the minified cli.Js file.
  • About 1,900 source files could be reconstructed from version 2.1.88, built on March 30, 2026.
  • The disclosure came from a published build artifact rather than a server compromise.

Context

The case shows that source maps can reveal implementation details even when production code is minified. For development teams and technical decision-makers, it highlights the need to review what build artifacts and installation identifiers are distributed with software.

What this means for you

Directly applicable

Developers can inspect published source maps, while technical decision-makers can use the case to review which source maps and device identifiers reach production packages.

Who benefits: Developers who analyze npm packages and technical decision-makers responsible for software supply-chain controls can use the case to identify information leakage risks.

Share article:

Integrate a system without docs?

API development: connect even poorly documented interfaces reliably, with tests and monitoring.