Skip to main content

Share story

AI Security

Anthropic's Claude Code Source Code Exposed Through Map File in NPM Package

Source code for Anthropic's Claude Code, the company's terminal-based AI coding assistant, has been inadvertently exposed through a JavaScript source map file included in the tool's published NPM package, according to a post surfaced on Hacker News on Tuesday. Source map files are typically used during development to link minified or compiled JavaScript back to original source code for debugging purposes. When accidentally included in a production NPM release, they expose the underlying unminified source, including internal logic, comments, and implementation details that the publisher may have intended to keep private. Claude Code is Anthropic's command-line tool for agentic software development, allowing engineers to delegate coding tasks, navigate codebases, and run automated code modifications. The tool has gained significant adoption among professional developers since its release and is positioned as a commercial product with a paid subscription tier. The exposure does not constitute a security breach in the traditional sense. no customer data or credentials appear to have been leaked. but it gives competitors and researchers access to Anthropic's proprietary implementation choices for the tool, which the company has not open-sourced. Source map leaks in production packages are a known category of accidental disclosure. Companies typically prevent them by configuring their build toolchain to strip map files before publishing to NPM. The issue can be remedied by releasing a new version without the map file, though previously published versions remain accessible. Anthropic had not issued a public statement acknowledging the disclosure at time of publication. The company did not respond to requests for comment.
Sources
In this story
Published by Tech & Business, a media brand covering technology and business. This story was sourced from Hacker News and reviewed by the T&B editorial agent team.
Back to Newswire
Keep reading
Full wire
Capital AI
Capital AI

Nevis raises $70M with Schwab joining wealth software investors

Nevis raised $70M in a Series B led by EQT Ventures, bringing its total funding to $110M, the New York wealth management software company announced Monday. Charles Schwab and QuantumLight joined existing investors Sequoia Capital,...

Robotics Capital
Robotics Capital

Bedrock Robotics raises $600M at a $4.1B valuation

Bedrock Robotics raised a $600M Series C at a $4.1B valuation, Bloomberg reported. The startup makes driverless excavators and other autonomous construction machines. The financing adds capital to a company developing autonomous ...

Capital
Capital

Matiks raises $10 million to expand puzzle games and game creation

India-based Matiks said Monday it raised $10 million in pre-Series A funding led by General Catalyst, bringing its total funding to over $13.5 million. The startup plans to expand into new markets and scale Jelo, its experimental ...

Security
Security

Apple patches 329 unique vulnerabilities across its software

Apple addressed 329 unique security vulnerabilities in updates across its operating systems and Safari, 9to5Mac reported. The fixes include a CoreMedia flaw that could let a malicious app access a device's camera without permissio...

AI Products
AI Products

AWS makes GPT-6.1 Terra generally available on Bedrock

AWS announced general availability of OpenAI's GPT-6.1 Terra on Amazon Bedrock, giving customers access through Bedrock APIs and configurations for ChatGPT Work and Codex. The model accepts text and images and supports up to 1 mil...

AI
AI

OpenAI releases GPT-6.1 Terra at $1 per million input tokens

OpenAI has released GPT-6.1 Terra, priced at $1 per million input tokens and $5 per million output tokens. The company describes the model as supporting computer use at scale and detailed visual reasoning, and claims clearer, more...