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.
Depi's researchers fed a crafted issue into the OpenAI Codex issue-labeling workflow in OpenAI's GitHub repository, made the agent run commands, escaped its sandbox and recovered runner tokens; they describe a path to publishing a malicious @openai/codex npm package that they did not carry out. SecurityWeek reports OpenAI fixed it and paid an initial $1,000 bounty.
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