Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @openai/codex
  4. ›
  5. CVE-2025-61260

CVE-2025-61260: OpenAI Codex CLI enables code execution through malicious MCP (Model Context Protocol) configuration files

April 14, 2026 (updated April 16, 2026)

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.

References

  • github.com/advisories/GHSA-xrxf-jgv3-qmrm
  • github.com/openai/codex
  • nvd.nist.gov/vuln/detail/CVE-2025-61260
  • research.checkpoint.com/2025/openai-codex-cli-command-injection-vulnerability

Code Behaviors & Features

Detect and mitigate CVE-2025-61260 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.23.0

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/@openai/codex/CVE-2025-61260.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 18 Apr 2026 00:20:06 +0000.