Advisory

GHSA-xrxf-jgv3-qmrm

Also known as: CVE-2025-61260

Summary

OpenAI Codex CLI enables code execution through malicious MCP (Model Context Protocol) configuration files

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-04-14 15:30 UTC
Modified
2026-04-16 23:11 UTC

Affected packages and fixes

@openai/codex

npm · All systems

Affected

  • introduced 0, last affected 0.23.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences