critical9.8
CVE-2025-61260
A vulnerability was identified in OpenAI Codex CLI v0.23.0 and before that enables code execution through malicious MCP (Model Context Protocol) configuration …
Impact
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
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | @openai/codex | <= 0.23.0 | none recorded |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-xrxf-jgv3-qmrm
- https://nvd.nist.gov/vuln/detail/CVE-2025-61260
- https://research.checkpoint.com/2025/openai-codex-cli-command-injection-vulnerability
- http://openai.com
- https://research.checkpoint.com/2025/openai-codex-cli-command-injection-vulnerability/