# Trusted Enough to Run: a GitHub issue broke three vendors' agent Actions

> Trusted Enough to Run is a Black Hat USA 2026 talk showing how one GitHub issue reached the official agent Actions of three AI vendors.

- **Severity:** Medium: Real and reproducible, but needs unusual setup, user help or a narrow audience. Plan a fix.
- **Category:** Talk, Vulnerability
- **Published by:** Black Hat
- **Disclosed:** 2026-11-22
- **Affects:** Claude Code, Gemini CLI, OpenAI Codex, GitHub Actions
- **Research by:** Elad Meged (Novee Security)
- **Primary source:** https://www.youtube.com/watch?v=T2nC96cVpwQ
- **Page:** https://theinjection.dev/items/novee-trusted-enough-to-run-talk/

Black Hat published Elad Meged's talk on 22 November 2026, showing how an attacker's GitHub issue defeated the official Claude Code, Gemini CLI and Codex automations. Anthropic, Google and OpenAI fixed all three before the talk.

## What happened

Black Hat uploaded the recording of Trusted Enough to Run on 22 November 2026, more than three months after Elad Meged of Novee Security gave the talk at Black Hat USA on 5 August 2026. Meged went after the agent GitHub Actions that Anthropic, Google and OpenAI publish themselves, instead of a company's own automation. Novee published the written research on 6 August 2026.

## How it works

Prefix matching is the common weakness: all three workflows decided what an agent may run by matching the start of a command or a tool name, then handed the result to a component that read it differently. Novee reports that Claude Code Action's validator ignored single-quoted text, so a payload inside git push --receive-pack ran anyway, and that run-gemini-cli registered the full shell tool because its coreTools allowlist was matched by prefix with no runtime check. The Codex issue deduplicator ran two passes in one shared workspace, which let the untrusted first pass write an AGENTS.md that the second pass loaded as trusted instructions. Exfiltration used read-only channels, and Novee describes leaking an API key one character at a time through download counts on 64 Hugging Face repositories.

## Who is affected

Google's advisory covers @google/gemini-cli below 0.39.1 and the run-gemini-cli action below 0.1.22, and Anthropic's covers @anthropic-ai/claude-code from 0.2.54 up to 2.1.163. OpenAI's codex-action received no CVE, because the flaw sat in the issue-deduplicator workflow rather than in a released version. Repositories that pin an old action tag or commit still run the vulnerable code.

## What to do

Update pinned action versions to run-gemini-cli 0.1.22 or later and @anthropic-ai/claude-code 2.1.163 or later, then check any workflow that runs an agent twice in one job on a shared checkout. Google's fix requires CI workflows to set folder trust explicitly, so set GEMINI_TRUST_WORKSPACE only where the input is trusted. Treat AGENTS.md and other agent instruction files inside a workflow as attacker-controlled input.

## Watch

[Black Hat USA 2026, Black Hat on YouTube](https://www.youtube.com/watch?v=T2nC96cVpwQ)

## Quick facts

- **Affected:** @anthropic-ai/claude-code >= 0.2.54 < 2.1.163; @google/gemini-cli < 0.39.1 and 0.40.0-preview.2; run-gemini-cli < 0.1.22; openai/codex-action issue-deduplicator workflow
- **Fixed in:** @anthropic-ai/claude-code 2.1.163; @google/gemini-cli 0.39.1 and 0.40.0-preview.3; run-gemini-cli 0.1.22
- **CVE:** CVE-2026-54316 (Claude Code, CVSS v4 6.0 Moderate) and CVE-2026-12537 (Gemini CLI, CVSS v3.1 10.0 Critical). No CVE for the Codex Action chain.
- **Found by:** Elad Meged of Novee Security. Google's advisory also credits Dan Lisichkin of Pillar Security.
- **Disclosed:** Advisories published 24 April 2026 (Gemini CLI) and 13 June 2026 (Claude Code). Talk given 5 August 2026, recording published 22 November 2026.
- **Status:** All three vendors shipped fixes before the talk. Novee reports Anthropic paid a bounty for each of three rounds.
- **Attack type:** Indirect prompt injection from a GitHub issue, then a command allowlist and trust boundary bypass

## Questions

### Which versions of the official agent GitHub Actions are fixed?

Google patched Gemini CLI in 0.39.1 and the run-gemini-cli action in 0.1.22, and Anthropic patched @anthropic-ai/claude-code in 2.1.163. OpenAI changed the codex-action issue-deduplicator workflow rather than shipping a version fix, so no CVE or fixed release exists for that chain. Repositories pinning an older action tag or commit still run the vulnerable code until the pin moves.

### Is the research in Trusted Enough to Run new, or were the flaws already public?

Novee Security published the written research on 6 August 2026, and the two vendor advisories came earlier, on 24 April 2026 for Gemini CLI and 13 June 2026 for Claude Code. What changed on 22 November 2026 is that Black Hat released the recording, which walks through the three exploit chains and the fixes. No new unpatched flaw is disclosed in the talk.

### How do I check whether my own agent workflow has the same weakness?

Look for the two patterns Meged exploited. First, any allowlist that matches a command or a tool by prefix, since a validator and the program that finally runs the command can read the same string differently. Second, any job that runs an agent more than once on one checkout, because the untrusted pass can write instruction files such as AGENTS.md that a later privileged pass trusts.

## Sources

1. [Black Hat Talk](https://www.youtube.com/watch?v=T2nC96cVpwQ)
2. [Novee Write-Up](https://novee.security/blog/critical-flaws-in-anthropic-google-and-openais-coding-agents/)
3. [Claude Code Advisory](https://github.com/advisories/GHSA-fg94-h982-f3mm)
4. [Gemini CLI Advisory](https://github.com/advisories/GHSA-wpqr-6v78-jr5g)
