{"id":"GHSA-xrxf-jgv3-qmrm","summary":"OpenAI Codex CLI enables code execution through malicious MCP (Model Context Protocol) configuration files","details":"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.","aliases":["CVE-2025-61260"],"modified":"2026-04-16T23:11:28.675093Z","published":"2026-04-14T15:30:34Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2026-04-16T22:56:42Z","nvd_published_at":"2026-04-14T15:16:24Z","cwe_ids":["CWE-94"],"severity":"CRITICAL"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61260"},{"type":"PACKAGE","url":"https://github.com/openai/codex"},{"type":"WEB","url":"https://research.checkpoint.com/2025/openai-codex-cli-command-injection-vulnerability"},{"type":"WEB","url":"http://openai.com"}],"affected":[{"package":{"name":"@openai/codex","ecosystem":"npm","purl":"pkg:npm/%40openai/codex"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.23.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-xrxf-jgv3-qmrm/GHSA-xrxf-jgv3-qmrm.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}