The Codex CLI Flaw That Turns a Simple Repo into an Attack Vector

A newly discovered vulnerability in OpenAI’s Codex CLI exposes how fragile modern development workflows can be when AI integrates deeply into everyday tools.

Codex automatically loads configuration files from each project. Attackers can hide malicious MCP entries inside a repository, and the moment a developer runs Codex, those entries execute as commands. No prompt. No warning. No second layer of validation.

Researchers proved this with working exploits, including reverse shells and credential harvesting. Because developer systems hold tokens, SSH keys, and source code, a single compromised repo becomes a gateway into pipelines and deployments.

This is a classic supply-chain weak point, amplified by AI tools that automate decisions developers assume are safe.

Before the patch arrives, teams should audit repositories, review Codex usage, and check for unusual configuration behavior.
AI improves workflow speed, but each integration point must be secured with the same seriousness we apply to production systems.

Read it here: https://gbhackers.com/openai-codex-cli-flaw/