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).

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)6.7%top 6.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
npm@openai/codexno fix listedGHSA-xrxf-jgv3-qmrm

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References