CVE-2025-61260criticalCode execution2026-04-14
CVE-2025-61260: OpenAI Codex CLI enables code execution through malicious MCP (Model Context Protocol) configuration files
A vulnerability was identified in OpenAI Codex CLI v0.23.0 and before that enables code execution through malicious MCP (Model Context Protocol) configuration files. The attack is triggered when a user runs the codex command inside a malicious or compromised repository.
What it is
A vulnerability was identified in OpenAI Codex CLI v0.23.0 and before that enables code execution through malicious MCP (Model Context Protocol) configuration files. The attack is triggered when a user runs the codex command inside a malicious or compromised repository. Codex automatically loads project-local .env and .codex/config.toml files without requiring user confirmation, allowing attackers to embed arbitrary commands that execute immediately.
How to check
- Affected: @openai/codex (npm) <= 0.23.0.
- Compare your installed version with the range above (command below).
How to fix
- No patched version of @openai/codex is listed yet. Follow the advisory for mitigations.
npm ls @openai/codex -g # or: codex --version Sources
More advisories for this tool
- criticalCVE-2026-107685: ReqLLM's OpenAI WebSocket sessions skip TLS checks and can leak API keys
- criticalMalicious npm packages posing as ChatGPT, Claude and Codex setup tools
- criticalUpGuard: 16,326 Supabase databases had readable tables
- highCVE-2026-137463: nanobot's OpenAI Codex provider retried authenticated requests with TLS verification turned off, letting a network attacker steal the bearer token (fixed 0.4.1)