Mark RadarMARK RADAR
EN

OpenAI Codex Prompt-Injection Flaw Could Expose GitHub Access Tokens, Researchers Say

1 reports · First detected 2026-04-08 · Last active 2026-04-08

OpenAI Codex can connect to GitHub repositories, read code and perform tasks on developers’ behalf, giving it access to privileged tokens. BeyondTrust said attackers could exploit prompt injection to turn the development workflow into a channel for leaking credentials if untrusted repository data is not properly isolated.

BeyondTrust researchers disclosed that attackers could hide malicious instructions in GitHub branch names, prompting Codex to execute commands and steal users’ GitHub access tokens. The affected scope included the Codex integration in ChatGPT’s web version and related SDKs. OpenAI completed a fix in February 2026 after receiving the report.

All Coverage

1 original reports

The Backstory

The history behind this event
Microsoft Discloses Claude Code Prompt-Injection Flaw That Could Leak CI/CD Credentials2026-06-07 · 1 reports · similarity 0.81

Anthropic’s Claude Code is a development environment that uses generative AI to help developers read and write code and operate tools. Prompt injection can override a user’s intent if the system mistakes text in a GitHub repository for trusted instructions. Microsoft said the flaw posed a significant risk because CI/CD systems often hold highly privileged credentials such as deployment keys and cloud tokens.

Microsoft security researchers recently disclosed that attackers could hide malicious prompts in GitHub content, inducing Claude Code to execute unintended commands and send CI/CD credentials to an external destination. Anthropic has patched the flaw. Users of version 2.1.128 and earlier are advised to upgrade immediately to reduce the risk of compromise to software supply chains and deployment environments.

GitHub Copilot RoguePilot Prompt-Injection Flaw Exposed2026-02-26 · 1 reports · similarity 0.82

GitHub Copilot and Codespaces import Issue content into cloud development environments to help AI assist with coding, but that process also turns externally controlled text into an attack surface. Orca Security named the passive prompt-injection chain RoguePilot. If an access token were leaked, attackers could read from and write to repositories, potentially compromising CI/CD supply chains and team development environments.

Orca Research Pod researcher Roi Nisimi disclosed the research on February 16, 2026. An attacker could hide instructions in an HTML comment within a GitHub Issue, prompting Copilot to check out a malicious pull request containing a symbolic link. A remote JSON schema could then be used to exfiltrate a GITHUB_TOKEN with read-write permissions. GitHub patched the flaw after it was reported. Orca did not disclose the number of actual victims, any financial losses or a CVE identifier.

Mark Radar|MARK RADAR