Skip to content
OpenAdvisories
Critical · 9.8 CVE-2025-61260 EUVD-2025-209435GHSA-xrxf-jgv3-qmrm

OpenAI Codex CLI enables code execution through malicious MCP (Model Context Protocol) configuration files

Published Apr 14, 2026 · Updated Jul 5, 2026 · Assigned by mitre

Description

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.

Affected packages

EcosystemPackageAffectedFixedRecord
npm @openai/codex <= 0.23.0 — GHSA-xrxf-jgv3-qmrm

References