Claude Code, Gemini CLI and Codex all fell to the same researcher at Black Hat — using nothing but default settings

A single security researcher disclosed critical flaws in Anthropic's Claude Code, Google's Gemini CLI and OpenAI's Codex at Black Hat USA 2026 — all found in the vendors' own public repositories running default configuration, and all exploitable for remote code execution or credential theft via prompt injection.

Security researcher Elad Meged of Novee disclosed, at Black Hat USA 2026 on 7 August, a matched set of critical vulnerabilities across the three most widely used AI coding agents — Anthropic’s Claude Code, Google’s Gemini CLI and OpenAI’s Codex. What makes this disclosure land differently to the usual steady drip of individual CVEs is the method: Meged tested each vendor’s own public repository, running each tool’s default configuration, and found a working exploit path in all three.

The specifics differ but the shape doesn’t. In Claude Code, a permissive default git push validation rule could be manipulated into executing arbitrary commands on GitHub Actions runners, going on to enable arbitrary file reads and exposure of workflow secrets — including GITHUB_TOKEN and ANTHROPIC_API_KEY. Anthropic shipped several interim patches before the final fix was assigned CVE-2026-54316. In Gemini CLI, two separate assumptions failed at once: a “restricted” shell tool that turned out not to be enforced at runtime, and credential sanitisation that stripped secrets from child processes but left them reachable to a compromised child through Linux’s own process interfaces. Google rated it CVSS 10.0 — the maximum possible score — and pushed a breaking change to its non-interactive trust model in response. In Codex, the problem was structural rather than a single bug: multi-stage automated workflows that share a writable checkout let an early, untrusted-input-processing stage plant a poisoned AGENTS.md file that a later, more trusted Codex run then loads and treats as instructions.

Every one of the three routes back to the same root cause — prompt injection via untrusted input (a GitHub issue, a workflow trigger, a file an earlier stage wrote) crossing a boundary it shouldn’t have had the authority to cross.

So what

This isn’t a story about any one vendor being careless — three separate engineering teams converged on structurally similar mistakes, which says more about the difficulty of the underlying problem than about any single product. For a business running (or about to run) AI coding agents inside CI/CD pipelines, the practical takeaway isn’t “switch tools” — it’s that default configuration on any of these platforms is not a safe assumption for automated, non-interactive execution. Least-privilege scoping on tokens, isolated execution environments for anything touching untrusted input, and treating agent-written or workflow-written files as untrusted until validated are no longer advanced practices; they’re the baseline for anyone letting an AI agent run unattended against a real codebase.

If you’re building AI-assisted development into your engineering process and want that built with this kind of threat model in mind from day one rather than retrofitted after a disclosure, see how we approach AI-assisted development or get in touch to talk it through.

← All research

More research.

GitHub's Copilot impact dashboard now counts chat and VS Code agent use, and drops the 'passive users' label

On 6 November 2026 GitHub added Copilot Chat and the VS Code Agents window to its Copilot impact dashboard, bringing it to nine tracked experiences, and renamed 'Passive users' to 'Chat-first users'.

Read ›

Claude Code 2.1.319: a setting that denies permission prompts so AI agent runs don't stall

Claude Code 2.1.319 (6 November 2026) adds a permissions.denyInsteadOfPrompting setting and moves long MCP tool calls to the background, a sign AI-assisted development is being built for unattended runs.

Read ›

GitHub now reports how often developers act on Copilot code review comments

On 5 November 2026 GitHub added code review metrics, including an addressed rate, to the Copilot usage metrics API. For AI software development buyers, it is the first first-party number for how much AI review feedback is acted on.

Read ›

Dependabot can now keep AI agent skills and prompts up to date

GitHub's Dependabot gained Agent Package Manager (APM) support on 3 November 2026, treating AI agent skills, prompts and instructions as dependencies that need updating like any other software.

Read ›

GitHub Copilot is now inside Xcode's own coding assistant: what iOS app owners should ask

GitHub put Copilot into Xcode's built-in coding assistant on 4 November 2026, in public preview with Xcode 27.3 beta. AI-assisted iOS app development is now a built-in choice of agent, not a plug-in.

Read ›

GitHub's Copilot usage API now separates bring-your-own-key and custom models: AI spend visibility for software buyers

GitHub's Copilot usage metrics API now reports bring-your-own-key (BYOK) and enterprise custom model usage separately, as of 3 November 2026. Teams using AI coding tools can see more of where usage goes.

Read ›

Start a project

Building with AI? Let's talk.

Tell us what you are building. We'll give you an honest view of the right approach.

Start a projectSee our work