CVE-2026-19591: OpenAI Codex CLI · Improper Neutralization of Escape, Meta, or Control Sequences
Affects OpenAI Codex CLISource CVE Database V5
Not known to be exploited · CVSS 8.8 High.
Data as of 1 Dec 2026, 18:37 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 25% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 1 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 1 Dec 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| OpenAICodex CLI | Affected
| Fixed in– |
| OpenAICodex Desktop | Affected
| Fixed in– |
| OpenAICodex Desktop | Affected
| Fixed in– |
| OpenAICodex Desktop (Microsoft Store package) | Affected
| Fixed in– |
AI-suggested
Until a fix is available, users should exercise caution when opening repositories from untrusted sources. On macOS and Linux, ensure that PowerShell Core is not installed if not needed, and verify filesystem sandboxing configurations to limit potential write locations. Monitor vendor communications for updates and apply official patches once released.
Description
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.