CVE-2026-19591
Last modified
CVE-2026-19591 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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. EPSS estimates a 0.16% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| OpenAI | Codex CLI | >= 0.72.0, <= 0.130.0 |
| OpenAI | Codex Desktop | >= 260202.0859, <= 26.513.31313 |
| OpenAI | Codex Desktop | >= 26.304.38, <= 26.513.40821 |
| OpenAI | Codex Desktop (Microsoft Store package) | >= 26.304.38.0, <= 26.513.4821.0 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-19591?
How severe is CVE-2026-19591?
How do I fix CVE-2026-19591?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-19586A pre-authentication OS command injection vulnerability has …9.8
- CVE-2026-19587Uncontrolled Resource Consumption vulnerability in Samsung O…6.5
- CVE-2026-19588Integer Overflow to Buffer Overflow vulnerability in Samsung…6.5
- CVE-2026-19589Packer up to 1.15.4 is vulnerable to an issue in the third-p…7.1
- CVE-2026-1959Stored Cross-Site Scripting (XSS) vulnerability in Loggro Py…5.1
- CVE-2026-19590OpenAI Codex Desktop for Windows and macOS could execute att…7.3
- CVE-2026-19592OpenAI Codex CLI for Windows, macOS, and Linux and Codex Des…7.3
- CVE-2026-19593OpenAI Codex Desktop for Windows and macOS automatically ins…9.8
- CVE-2026-19594Insufficient input sanitization in Snowflake Python API (`sn…8.1
- CVE-2026-19596An XML External Entity (XXE) vulnerability exists in the XML…5.9
- CVE-2026-19598The Pods – Custom Content Types and Fields plugin for WordPr…9.8
- CVE-2026-1960Stored Cross-Site Scripting (XSS) vulnerability in Loggro Py…5.1
Are you affected by CVE-2026-19591?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
