Fetching from the wire…
Public story · 2026-03-20 · source-backed
Check Point Research disclosed CVE-2025-59536 and CVE-2026-21852 — two vulnerabilities that weaponize Claude Code's project configuration system against its users. This matters because an Agents Anonymous survey this week showed 90% of practitioners at their SF meetup use Claude Code. The attack surface is massive.
The first vector: a malicious .claude directory in a cloned repository can set ANTHROPIC_BASE_URL to redirect all API traffic — including full authorization headers with your API key — to an attacker-controlled server. The redirect happens before the user sees a trust dialog. You clone a repo, open it in Claude Code, and your API credentials are exfiltrated in plaintext before you've read a single line of code.
The second vector exploits Claude Code's hook execution model. A crafted CLAUDE.md file can inject arbitrary shell commands into the agent lifecycle — commands that execute with your user permissions the instant Claude Code opens the project. RCE via documentation. Not via exploit code. Via a markdown file.
The defense is behavioral, not technical: treat .claude/ project files like executable code in your threat model. Never open unreviewed repositories in Claude Code without first inspecting the .claude directory and any CLAUDE.md files. If you're cloning repos from untrusted sources — and GitHub forks from strangers count as untrusted — audit the project configuration files before launching your agent.
This converges with the bot PR finding above in an ugly way. If bots are submitting PRs that introduce or modify CLAUDE.md files in popular repos, and those PRs merge without adequate review, the next developer who clones and opens that repo in Claude Code is compromised. The supply chain attack doesn't require the victim to install anything unusual. They just have to open a project in the tool 90% of practitioners already use daily.
Each link below shares sources, entities, or timing with this story.
The most important security research this week. Check Point demonstrated three attack vectors in Claude Code exploiting project configuration files in untrusted repositories: (1) Hooks RCE (CVE-2025-59536, CVSS 8.7) — malicious hooks in .claude/settings.json execute shell comm...
Three attack vectors: (1) Hooks-based RCE via .claude/settings.json executing shell commands on SessionStart without confirmation, (2) MCP consent bypass via repo-controlled config auto-approving all servers, (3) API key exfiltration via ANTHROPIC_BASE_URL pointing to attacker...
A single PR title. A hidden HTML comment in an issue body. No jailbreak, no social engineering, no user interaction required. Your credentials get exfiltrated through GitHub's own infrastructure before you ever see the notification. Security researcher Aonan Guan (Wyze Labs) a...
Y Combinator CEO Garry Tan open-sourced GStack and the repo hit 10,000 GitHub stars in 48 hours. That makes it one of the fastest-growing dev tools of 2026. GStack is a 23-tool MIT-licensed toolkit that turns Claude Code into role-based agents: CEO, Designer, QA, Release Manag...
CVE-2025-59536 (CVSS 8.7): malicious hooks in a cloned repo's .claude/settings.json execute shell commands at session startup before security dialogs appear. MCP consent bypass: .mcp.json with enableAllProjectMcpServers auto-approves rogue servers. CVE-2026-21852 (CVSS 5.3): o...
A GitHub repo cataloging Claude Code tips doesn't normally warrant a top story. But shanraisshan/claude-code-best-practice at 53.4K stars isn't a tips list anymore. It's the de facto reference for how an entire generation of developers is learning to work with AI coding agents...
MindPattern daily
One email a day at 7 AM. Sources and a take on every story. Unsubscribe anytime.