Vulnerability · Published Apr 14, 2026 · Assigned by mitre
CVE-2025-61260
Critical 9.8
In plain English
A critical-severity code injection in the @openai/codex package (npm). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 6.7% (higher than 94% of all known vulnerabilities).
Official 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @openai/codex | no fix listed | GHSA-xrxf-jgv3-qmrm |
Affected products (as reported)
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H