CVE-2026-19591: OpenAI Codex CLI (Windows, macOS, Linux) vulnerability

Published Sep 1, 2026
·
Updated

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.

Affected Software

2 affected components
OpenAI Codex CLI (Windows, macOS, Linux)
OpenAI Codex Desktop (Windows, macOS)

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade OpenAI Codex CLI (Windows, macOS, Linux) to a version that resolves this vulnerability.

    Fixed in 0.131.0
  2. Upgrade

    Upgrade Codex Desktop (macOS) to a version that resolves this vulnerability.

    Fixed in 26.519.22136
  3. Upgrade

    Upgrade Codex Desktop (Windows) to a version that resolves this vulnerability.

    Fixed in 26.519.21041Patch Microsoft Store package 26.519.2081.0

Event History

Sep 1, 2026
CVE Published
via MITRE·05:06 PM
Data Sourced
via MITRE·05:06 PM
RemedyDescriptionWeakness

Frequently Asked Questions

1

Which environments have the additional PowerShell requirement?

On macOS and Linux, exploitation additionally requires PowerShell Core (pwsh) to be separately installed and invoked. The affected products include Codex CLI on Windows, macOS, and Linux, and Codex Desktop on Windows and macOS.

2

What must occur for the approval bypass to lead to code execution?

A user must open an attacker-prepared repository and Codex must follow its instructions, allowing a file-writing Git command to run without approval. Filesystem protections must permit modification of Codex configuration, and Codex must later load that modified configuration, which can start an attacker-controlled MCP server.

3

Does the approval bypass bypass filesystem sandboxing?

No. The approval bypass does not disable filesystem sandboxing; on macOS and Linux, the default filesystem sandbox can prevent writes outside permitted locations.

4

What level of access could an attacker obtain after a successful configuration modification?

An attacker-controlled MCP server can execute code with the affected user's privileges. This can allow reading, changing, or deleting files accessible to that user account.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203