Cases › operational mistake › LR-2026-0443
Anthropic Claude Code source code leaked through npm packaging error
Confirmed Why: 2 independent outlets · 2 independent reports
Status: fix reported
No source states: loss or records, agent tool, could do, deployer, industry.
Severity minor: Test: minor, contained to the company's own source code; no third-party data touched, per Anthropic's statement that no sensitive customer data or credentials were involved or exposed.
Anthropic's Claude Code, a coding tool whose software harness wraps its underlying AI model, had its source code exposed publicly. Press reports say the leak exposed around 500,000 lines of code across roughly 1,900 files. The exposure appears to have followed an upload of all of Claude Code's original code to NPM rather than only the finished build. Anthropic said the matter was a release packaging issue caused by human error, not a security breach, and that no sensitive customer data or credentials were involved or exposed. Anthropic said normal release safeguards were not bypassed, while an outside security researcher said the process did not appear to be in place. The leak came days after a separate exposure of draft material, and Anthropic said it was rolling out measures to prevent recurrence.
What happened
What was done
“Rolling out measures to prevent recurrence”
Same developer, same risk, after the fix: LR-2026-0281 · LR-2026-0607
Risks
Primary24 incidents
Rising: 4 vs 0.2 a week
Also63 incidents
Rising: 5 vs 2.2 a week
Sorted by rule from the case's fields; not yet read from the sources.
Controls
Not yet read for controls. Controls that mitigate the primary risk:
Harness ApplicationSigned and verified components · Vetting of plug-ins, skills and dependencies · AI bill of materials · Vulnerability scanning of AI components · Model provenance checks · Least-privilege access for the agent
Infrastructure / targetSimilar incidents
Evidence
No source states: what the AI was doing, what went wrong, how it was caught, when it happened, when it was found, the direct loss, a count of the other parties affected, any court case, the cause, what set it off.
Show the full account: 3 items from the primary sources
What happened, in order
- 2025-02 An early version of Claude Code accidentally exposed its original code in a similar breach.
Not dated in the sources:
- Anthropic confirmed to Fortune that some internal source code had been leaked within a Claude Code release.
- Anthropic said it was rolling out measures to prevent this from happening again.
Show every field, with its source and grade
The AI system
What happened
Impact
LR-2026-0443 · version 1 · published 2026-11-01 after automatic checks; not yet checked field by field by a person · JSON