mcp-cve-project

CVE-2025-61260 | OpenAI Codex CLI malicious MCP / project config auto-load (RCE) | Critical |

CVE Information

Field Value
CVE / NVD CVE-2025-61260
Date (index) 2025-11-15
Affected product (index) OpenAI Codex CLI
GHSA ID GHSA-xrxf-jgv3-qmrm
OWASP MCP Top 10 (2025) MCP04 — Software Supply Chain Attacks & Dependency Tampering
Published / disclosed 2026-04-14
Ecosystem npm
Component OpenAI Codex CLI
EPSS score 0.070610000 (FIRST EPSS, 2026-06-30)
CVSS score Critical — 9.8 — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD CVSS 3.1)
CWE CWE-94
Affected versions OpenAI Codex CLI v0.23.0 and earlier (per NVD)
Fixed versions None published in GHSA/OSV (last affected 0.23.0)
Fix status Unfixed
Exploit status Public advisory (GitHub reviewed)
Notes Details below are aligned to the English NVD description at indexing time; re-check NVD for CNA updates.

CVE Breakdown


What is the vulnerability?

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.

Attack prerequisites / exposure

Depends on deployment: many MCP issues require a reachable HTTP/SSE listener, a malicious remote MCP server, a poisoned project/workspace config, or a victim opening attacker-influenced content. Treat developer workstations and shared CI runners as high-value targets when MCP servers run with host access.

CVE is because of what bug?

See the NVD description and linked references for the upstream root cause; CWE rows above summarize the weakness mapping published by NVD.

MCP-specific impact / why it matters

MCP extends an agent’s reach into tools, hosts, and cloud APIs. Failures in transport authentication, logging, URL validation, session binding, or local config loading frequently become RCE, credential theft, SSRF, or session hijacking in MCP-shaped deployments.

Where was the bug? (source + snippet)

Add a minimal vulnerable code snippet here after reviewing the linked upstream commit / tag diff (do not paste weaponized payloads).

Fix / Remediation

Upgrade to vendor-fixed versions where available, reduce network exposure (bind to localhost, require auth on HTTP transports), and apply standard MCP deployment hygiene (tool allowlists, egress controls, separate secrets from logs).

Upstream fix (open source)