{"id":229913,"date":"2026-04-01T02:12:00","date_gmt":"2026-04-01T06:12:00","guid":{"rendered":"https:\/\/news-you-need.com\/index.php\/2026\/04\/01\/claude-code-source-leaked-via-npm-packaging-error-anthropic-confirms\/"},"modified":"2026-04-01T05:10:10","modified_gmt":"2026-04-01T09:10:10","slug":"claude-code-source-leaked-via-npm-packaging-error-anthropic-confirms","status":"publish","type":"post","link":"https:\/\/news-you-need.com\/index.php\/2026\/04\/01\/claude-code-source-leaked-via-npm-packaging-error-anthropic-confirms\/","title":{"rendered":"Claude Code Source Leaked via npm Packaging Error, Anthropic Confirms"},"content":{"rendered":"<p><a href=\"https:\/\/thehackernews.com\/2026\/04\/claude-code-tleaked-via-npm-packaging.html\">Claude Code Source Leaked via npm Packaging Error, Anthropic Confirms<\/a><\/p>\n<p><a href=\"https:\/\/thehackernews.com\/2026\/04\/claude-code-tleaked-via-npm-packaging.html\">https:\/\/thehackernews.com\/2026\/04\/claude-code-tleaked-via-npm-packaging.html<\/a><\/p>\n<p>Publish Date: <a href=\"publish_date]\">2026-04-01 02:12:00<\/a><\/p>\n<p>Source Domain: <a href=\"thehackernews.com\">thehackernews.com<\/a><\/p>\n<p><span class=\"p-author\">\ue804<span class=\"author\">Ravie Lakshmanan<\/span>\ue802<span class=\"author\">Apr 01, 2026<\/span><\/span><span class=\"p-tags\">Data Breach \/ Artificial Intelligence<\/span><\/p>\n<p>Anthropic on Tuesday confirmed that internal code for its popular artificial intelligence (AI) coding assistant, Claude Code, had been inadvertently released due to a human error.<\/p>\n<p>&#8220;No sensitive customer data or credentials were involved or exposed,&#8221; an Anthropic spokesperson said in a statement shared with CNBC News. &#8220;This was a release packaging issue caused by human error, not a security breach. We\u2019re rolling out measures to prevent this from happening again.&#8221;<\/p>\n<p>The discovery came after the AI upstart released version 2.1.88 of the Claude Code npm package, with users spotting that it contained a source map file that could be used to access Claude Code&#8217;s source code \u2013 comprising nearly 2,000 TypeScript files and more than 512,000 lines of code. The version is no longer available for download from npm.<\/p>\n<p>Security researcher Chaofan Shou was the first to publicly flag it on X, stating &#8220;Claude code source code has been leaked via a map file in their npm registry!&#8221; The X post has since amassed more than 28.8 million views. The leaked codebase remains accessible via a public GitHub repository, where it has surpassed 84,000 stars and 82,000 forks.<\/p>\n<p>A source code leak of this kind is significant, as it gives software developers and Anthropic&#8217;s competitors a blueprint for how the popular coding tool works. Users who have dug into the code have published details of its self-healing memory architecture to overcome the model&#8217;s fixed context window constraints, as well as other internal components.<\/p>\n<p>These include a tools system to facilitate various capabilities like file read or bash execution, a query engine to handle LLM API calls and orchestration, multi-agent orchestration to spawn &#8220;sub-agents&#8221; or swarms to carry out complex tasks, and a bidirectional communication layer that connects IDE extensions to Claude Code CLI.<\/p>\n<p>The leak has also shed light on a feature called KAIROS that allows Claude&#8230;<\/p>\n<p><a href=\"https:\/\/thehackernews.com\/2026\/04\/claude-code-tleaked-via-npm-packaging.html\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Claude Code Source Leaked via npm Packaging Error, Anthropic Confirms https:\/\/thehackernews.com\/2026\/04\/claude-code-tleaked-via-npm-packaging.html Publish Date: 2026-04-01 02:12:00&#8230;<\/p>\n","protected":false},"author":1,"featured_media":229914,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEj39e4BXzk1M6BK7XEJcfogVbdwnYJjie08kNTAeW5T46Tn8UvbbaYGrrEpgw1Pa4IpJYeGe8AR7T_UCp4_vWYTcG-c5DY0HNlHW-8SbYkscVvjAKjKR3gHmlWAQONEx8kg_ANVfOr8OsQ7uTm-XWHW1PNfusxBj-Tn2kn-V2EedPykA3ESB66doPXxGzT8\/s1600\/claude-code.jpg","fifu_image_alt":"","footnotes":""},"categories":[15],"tags":[26,20,30,17],"class_list":["post-229913","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cybersecurity","tag-ai","tag-artificial-intelligence","tag-breach","tag-llm"],"_links":{"self":[{"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/229913"}],"collection":[{"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/comments?post=229913"}],"version-history":[{"count":1,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/229913\/revisions"}],"predecessor-version":[{"id":229915,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/229913\/revisions\/229915"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/media\/229914"}],"wp:attachment":[{"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/media?parent=229913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/categories?post=229913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/tags?post=229913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}