AI Wiki · Mediocre Security
IncidentIncidents

Codex GitHub Actions prompt-injection chain

Depi showed in Nov 2026 that a crafted GitHub issue could hijack the Codex agent in OpenAI's own repository workflow, steal runner tokens and, in principle, poison a future Codex npm release.

What happened

Researchers at security firm Depi found that the issue-labeling workflow in OpenAI’s public Codex repository on GitHub passed the title and body of any newly opened issue into a Codex agent prompt, and allowed any user to trigger it. A crafted issue, with its payload encoded to get past Codex’s guardrails, made the agent run shell commands on the Actions runner. Depi then escaped the agent’s sandbox through the runner’s .NET debugging pipes, read the runner’s memory and recovered its GITHUB_TOKEN and Actions runtime token. Depi says its test-repository logs confirm the execution.

Depi’s write-up goes on to describe how those tokens could poison the build cache of a privileged workflow and, once a maintainer deleted a planted fake release, obtain the credentials to publish a malicious @openai/codex package to npm. Depi says it did not carry out that publish. SecurityWeek reports that OpenAI fixed the issue and paid an initial $1,000 bounty. No CVE was assigned.

Why it matters

The chain began with text an outsider could post in public and ended near the release pipeline of a widely installed coding agent. It is a supply-chain case of Prompt injection: an agent wired into CI with access to secrets.

Timeline

Every dated event in the wiki that involves Codex GitHub Actions prompt-injection chain, newest first.

Connections

Codex GitHub Actions prompt-injection chain and everything one link away. Drag to move, scroll to zoom, click a node to open it.Open in the full graph →

What links here

Product OpenAI Codex

Sources

  1. Depi, “Backdooring the next release of Codex through GitHub Action pipeline exploit chaining”, Nov 11 2026
  2. SecurityWeek, “In Other News: New CISA Director Nominee, Connected Car Hacking, Baker Tilly Data Breach”, Nov 13 2026