| Field | Value |
|---|---|
| CVE / NVD | CVE-2026-19591 |
| Date (index) | 2026-09-01 |
| Affected product (index) | OpenAI Codex CLI for Windows, macOS, and Linux and Codex Desktop for Windows and macOS misclassified certain PowerShell commands as safe because their command-safety parser interpreted PowerShell’s stop-parsing token (– |
| GHSA ID | None — no GitHub advisory published (search) |
| OWASP MCP Top 10 (2025) | MCP06 - Prompt Injection via Contextual Payloads |
| Published / disclosed | 2026-09-01 |
| Ecosystem | Application (vendor product) |
| Component | OpenAI Codex CLI / Codex Desktop |
| EPSS score | 0.003050000 (FIRST EPSS, 2026-09-26) |
| CVSS score | High / 8.8 |
| CWE | CWE-150 |
| Affected versions | Codex CLI / Codex Desktop (pre-Microsoft patch; see MSRC advisory) |
| Fixed versions | None published in NVD/OSV |
| Fix status | Unfixed |
| Exploit status | Public advisory / public CVE record |
| Notes | Added during 2026-09-07 gap review against NVD, GitHub Advisory Database, OSV, OpenCVE, and related MCP advisory searches. |
OpenAI Codex CLI for Windows, macOS, and Linux and Codex Desktop for Windows and macOS misclassified certain PowerShell commands as safe because their command-safety parser interpreted PowerShell’s stop-parsing token (–%) differently than PowerShell itself. If a user opens an attacker-prepared repository and Codex follows its instructions, Codex can run a file-writing Git command without requesting user approval. On macOS and Linux, exploitation additionally requires separately installed PowerShell Core (pwsh) to be invoked. If filesystem protections permit the write, the command can modify Codex’s configuration. If Codex later loads the modified configuration, it can launch an attacker-controlled MCP server and execute code with the user’s privileges, allowing it to read, change, or delete files accessible to that account. The approval bypass does not disable filesystem sandboxing; the default filesystem sandbox on macOS and Linux can prevent writes outside permitted locations.
Exposure depends on deployment: reachable MCP transports, enabled MCP tools, local listeners without robust Host/Origin/authentication checks, or trusted workspace/project MCP configuration treated as safe input.
The issue maps to CWE-150; review the upstream advisory for the exact vulnerable code path and patched implementation.
This issue affects an MCP server, SDK, gateway, client, integration, or MCP-enabled workflow where tool execution, transport exposure, secrets, files, or authorization boundaries are part of the risk surface.
Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory.
Upgrade to the vendor-fixed version where available. Restrict MCP listeners to trusted networks, require authentication for HTTP/SSE/Streamable HTTP transports, validate Host and Origin headers, constrain filesystem and command-execution tools, and treat project/workspace MCP configuration as untrusted input.
Prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.