Skip to main content
VulnerabilityPublished Updated

CVE-2026-19591: OpenAI Codex CLI · Improper Neutralization of Escape, Meta, or Control Sequences

Affects OpenAI Codex CLISource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.8 High.

Data as of 1 Dec 2026, 18:37 UTC

CVSS 3.1 base score
8.8High
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 Sep 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
OpenAICodex CLIAffected
  • >=0.72.0 <=0.130.0
Fixed in–
OpenAICodex DesktopAffected
  • >=260202.0859 <=26.513.31313
Fixed in–
OpenAICodex DesktopAffected
  • >=26.304.38 <=26.513.40821
Fixed in–
OpenAICodex Desktop (Microsoft Store package)Affected
  • >=26.304.38.0 <=26.513.4821.0
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.

References

Community reviews

Loading reviews…