Anthropic Just Leaked Claude Code's Source. Here's What It Means for Your Vibe-Coded App.
<p>Georgia Tech researchers just dropped a stat that should scare every vibe coder: <strong>35 new CVEs in March 2026 were traced directly to AI-generated code.</strong></p> <p>But today, Anthropic proved the point better than any research paper could.</p> <h2> What Happened </h2> <p>Anthropic accidentally shipped a 59.8 MB JavaScript source map file in version 2.1.88 of their Claude Code npm package. That single file exposed the entire codebase: <strong>512,000 lines of TypeScript</strong>, internal architecture details, 44 hidden feature flags, 20 unshipped features, and the exact prompts used to control the AI agent.</p> <p>Within hours, the code was mirrored across GitHub, forked into open-source alternatives, and analyzed by thousands of developers. Anthropic confirmed it was "a relea
Georgia Tech researchers just dropped a stat that should scare every vibe coder: 35 new CVEs in March 2026 were traced directly to AI-generated code.
But today, Anthropic proved the point better than any research paper could.
What Happened
Anthropic accidentally shipped a 59.8 MB JavaScript source map file in version 2.1.88 of their Claude Code npm package. That single file exposed the entire codebase: 512,000 lines of TypeScript, internal architecture details, 44 hidden feature flags, 20 unshipped features, and the exact prompts used to control the AI agent.
Within hours, the code was mirrored across GitHub, forked into open-source alternatives, and analyzed by thousands of developers. Anthropic confirmed it was "a release packaging issue caused by human error."
Human error. A source map in production. The exact same mistake AI coding tools make in your app every day.
Why This Matters More Than You Think
This isn't just an Anthropic story. It's a pattern.
Anthropic is a $30B company with a $2.5B ARR product. They have security teams, code review processes, and CI/CD pipelines. And a source map still made it to production.
Now think about what's shipping in the average vibe-coded app built with Lovable, Bolt, or Cursor:
-
Source maps in production builds (the exact same error Anthropic made)
-
.env files committed to public repos (your database credentials, API keys)
-
Debug endpoints left active (admin panels, test routes with no auth)
-
Hardcoded secrets in client-side code (visible to anyone who opens DevTools)
-
No .gitignore for sensitive files (lockfiles, build artifacts, config files with credentials)
These aren't theoretical. We see them in real apps every day.
The Pattern: Three Major AI Toolchain Incidents This Month
March 2026 was brutal for AI security:
-
LiteLLM supply chain attack (March 25): A backdoored package on PyPI got 47,000 downloads in 46 minutes. The same attacker also poisoned Telnyx (742K monthly downloads). Malware was hidden in a WAV file.
-
trivy-action poisoned (March 14): A GitHub Action used for security scanning was itself compromised. The tool meant to protect you became the attack vector.
-
Claude Code source leak (March 31): 512,000 lines of production code exposed via a source map in an npm package. The AI coding tool leaked its own source code.
The tools we use to build and secure AI-generated code are themselves becoming the attack surface.
What the Leaked Code Actually Revealed
For anyone building AI agents or using Claude Code, the leaked source exposed:
-
A profanity flagging system that quietly records flagged content
-
44 hidden feature flags controlling unreleased capabilities
-
A three-layer memory architecture (MEMORY.md index, topic files, grep-based transcript search)
-
Verification agent prompts that explicitly call out Claude's tendency to claim it verified something without actually running the check
That last one is telling. Anthropic's own internal prompts say: "reading is not verification. run it." They know their model takes shortcuts. Your vibe-coded app is built by that same model.
What You Should Do Right Now
Check your builds for source maps:
# Find source map files in your build output find ./dist -name "*.map" -o -name "*.js.map"# Find source map files in your build output find ./dist -name "*.map" -o -name "*.js.map"Check if your bundler is generating source maps for production
grep -r "sourcemap|sourceMap|devtool" webpack.config.* vite.config.* next.config.`
Enter fullscreen mode
Exit fullscreen mode
Check for exposed secrets:
# Search for hardcoded API keys and credentials grep -rn "sk-|api_key|password|secret|token" --include="*.ts" --include="*.js" --include="*.env" .*# Search for hardcoded API keys and credentials grep -rn "sk-|api_key|password|secret|token" --include="*.ts" --include="*.js" --include="*.env" .*Make sure .env is in .gitignore
cat .gitignore | grep -i env`
Enter fullscreen mode
Exit fullscreen mode
Check your npm packages:
# See what files are included in your package npm pack --dry-run# See what files are included in your package npm pack --dry-runAdd min-release-age to block new packages for 7 days
echo "min-release-age=7" >> ~/.npmrc`
Enter fullscreen mode
Exit fullscreen mode
Or scan your whole app in 30 seconds: notelon.ai checks for source maps, exposed secrets, missing auth, and the other common vibe coding mistakes. Free. No signup.
The Lesson
Anthropic has 1,000+ employees, dedicated security teams, and enterprise compliance requirements. They still shipped a source map to production.
You're one person with an AI coding tool. What's in YOUR production build right now?
The gap between code generation speed and security review isn't closing. It's accelerating. 35 new CVEs from AI code in March. The tools themselves are becoming attack vectors. And the developers who need security most are the ones least likely to check.
Don't be the next leak. Scan your code before someone else does.
Sources: VentureBeat, Ars Technica, Fortune, Infosecurity Magazine
Sign in to highlight and annotate this article

Conversation starters
Daily AI Digest
Get the top 5 AI stories delivered to your inbox every morning.
More about
claudemodelreleaseA Very Fine Untuning
How fine-tuning made my chatbot worse (and broke my RAG pipeline) I spent weeks trying to improve my personal chatbot, Virtual Alexandra , with fine-tuning. Instead I got increased hallucination rate and broken retrieval in my RAG system. Yes, this is a story about a failed attempt, not a successful one. My husband and I called fine tuning results “Drunk Alexandra” — incoherent answers that were initially funny, but quickly became annoying. After weeks of experiments, I reached a simple conclusion: for this particular project, a small chatbot that answers questions based on my writing and instructions, fine tuning was not a good option. It was not just unnecessary, it actively degraded the experience and didn’t justify the extra time, cost, or complexity compared to the prompt + RAG system

Google's TurboQuant saves memory, but won't save us from DRAM-pricing hell
<h4>Chocolate Factory’s compression tech clears the way to cheaper AI inference, not more affordable memory</h4> <p>When Google unveiled <a target="_blank" rel="nofollow" href="https://research.google/blog/turboquant-redefining-ai-efficiency-with-extreme-compression/">TurboQuant</a>, an AI data compression technology that promises to slash the amount of memory required to serve models, many hoped it would help with a memory shortage that has seen prices triple since last year. Not so much.…</p>

Writing Better RFCs and Design Docs
<p>RFCs (Request for Comments) and design docs are how engineering teams align on the “what” and “why” before writing code. Done well, they reduce rework and create a record of decisions. Done poorly, they sit unread or trigger endless debate. Here’s how to write <strong>better RFCs and design docs</strong> that get read, get feedback, and lead to decisions.</p> <h2> Why Write Them at All? </h2> <ul> <li> <strong>Alignment:</strong> Everyone works from the same understanding of the problem and the approach.</li> <li> <strong>Async review:</strong> People can respond in their own time, including across time zones.</li> <li> <strong>Memory:</strong> Later you have a record of why you chose X and what you rejected.</li> <li> <strong>Onboarding:</strong> New joiners (and future you) can unders
Knowledge Map
Connected Articles — Knowledge Graph
This article is connected to other articles through shared AI topics and tags.
More in Products

Writing Better RFCs and Design Docs
<p>RFCs (Request for Comments) and design docs are how engineering teams align on the “what” and “why” before writing code. Done well, they reduce rework and create a record of decisions. Done poorly, they sit unread or trigger endless debate. Here’s how to write <strong>better RFCs and design docs</strong> that get read, get feedback, and lead to decisions.</p> <h2> Why Write Them at All? </h2> <ul> <li> <strong>Alignment:</strong> Everyone works from the same understanding of the problem and the approach.</li> <li> <strong>Async review:</strong> People can respond in their own time, including across time zones.</li> <li> <strong>Memory:</strong> Later you have a record of why you chose X and what you rejected.</li> <li> <strong>Onboarding:</strong> New joiners (and future you) can unders

Building Global Crisis Monitor: A Real-Time Geopolitical Intelligence Dashboard
<p><a href="https://global-crisis-monitor.com" rel="noopener noreferrer"><strong>Global Crisis Monitor</strong></a> is a personal, artistic project. I built it in a period when wars that once felt distant became part of everyday conversation-appearing in feeds and notifications alongside everything else. There is something disorienting about that: a bombing in a city you can name, a ceasefire that collapsed overnight, a famine declared-and then, scrolling past it, an advertisement. The architecture of attention flattens everything into the same urgency and the same forgettability.</p> <p>I wanted to refuse that flattening. Not a feed aggregator; a single surface where the signals are collected, held together, and given weight. So I built an ingester that turns 80+ RSS feeds into structured

How We're Approaching a County-Level Education Data System Engagement
<p>When Los Angeles County needs to evaluate whether a multi-agency data system serving foster youth should be modernized or replaced, the work sits at the intersection of technology, policy, and people. That's exactly where we operate.</p> <h2> The Opportunity </h2> <p>The LA County Office of Child, Youth, and Family Well-Being is looking for a consulting team to analyze the Education Passport System (EPS), a shared data platform that connects 80+ school districts with the Department of Children and Family Services and the Probation Department. The system exists to ensure that when a foster youth moves between placements, their education records follow them.</p> <p>The question on the table: does the current system meet the needs of all stakeholders, or is it time to move to something new

I Built a Portable Text Editor for Windows — One .exe File, No Installation, Forever Free
<p>A solo developer's story of building the Notepad replacement that should have existed years ago.</p> <p>I've been using Windows my whole life. And my whole life, every time I needed to write something with a bit of formatting — a heading, some bold text, a colored note — I ended up either opening Word (too heavy), using Notepad (too limited), or pasting into a browser-based tool (too many accounts).</p> <p>WordPad was the middle ground. Then Microsoft removed it from Windows 11.<br> That was the moment I decided to build my own.</p> <h2> The Problem I Was Solving </h2> <p>Let me be specific about what I needed, because "text editor" covers everything from Vim to Google Docs.</p> <p>I wanted something that:</p> <ul> <li>Requires zero installation. I work on multiple machines — personal,

Discussion
Sign in to join the discussion
No comments yet — be the first to share your thoughts!