CVE-2025-61260
CRITICAL 9.8CVSS 3.1OpenAI 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. Codex automatically loads project-local .env and .codex/config.toml files without requiring user confirmation, allowing attackers to embed arbitrary commands that execute immediately.
- Published
- 14 Apr 2026
- Last modified
- 4 Nov 2026
- Assigned by
- cve@mitre.org
- NVD status
- Awaiting Analysis
- Weakness
- CWE-94
- Also known as
- GHSA-xrxf-jgv3-qmrm
- Sources
- NVDJSONOSV GHSA-xrxf-jgv3-qmrmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | @openai/codex | <= 0.23.0 |
References
- https://research.checkpoint.com/2025/openai-codex-cli-command-injection-vulnerability/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-61260 · ADVISORY
- https://github.com/openai/codex · PACKAGE
- http://openai.com · WEB
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 14 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 14 Apr 2026)