ZDI-26-305: (0Day) OpenAI Codex Sandbox Escape Vulnerability
This vulnerability allows remote attackers to bypass the sandbox on affected installations of OpenAI Codex. User interaction is required to exploit this vulnerability in that the target must use Codex to process a repository containing malicious JavaScript. The ZDI has assigned a CVSS rating of 8.6.
AI Analysis
Technical Summary
This vulnerability (ZDI-26-305) affects OpenAI Codex installations where the sandbox can be bypassed due to insufficient isolation in the JavaScript execution environment. Remote attackers can exploit this by tricking users into processing malicious JavaScript repositories, leading to code execution in the user's context. The issue was reported to OpenAI in February 2026, with the vendor reproducing the behavior but rejecting it as out of scope for their bug bounty and stating it is not part of the default Codex product surface. No patch or official fix has been released, and the vendor has not committed to a remediation timeline. The Zero Day Initiative published the advisory in April 2026, assigning a CVSS score of 8.6.
Potential Impact
Successful exploitation allows remote attackers to escape the sandbox environment in OpenAI Codex and execute arbitrary code with the privileges of the current user. This can lead to full compromise of the user's environment where Codex is running. User interaction is required, as the target must process a repository containing malicious JavaScript. There are no known exploits in the wild at the time of advisory publication. The vendor has not provided an official fix or patch.
Mitigation Recommendations
No official patch or fix is currently available. The vendor has indicated the vulnerability is not in the default Codex product surface and has not accepted it under their bug bounty program. The primary mitigation is to restrict or avoid interaction with the affected Codex installations, especially avoiding processing untrusted or malicious JavaScript repositories. Monitor vendor advisories for any future updates regarding remediation.
ZDI-26-305: (0Day) OpenAI Codex Sandbox Escape Vulnerability
Description
This vulnerability allows remote attackers to bypass the sandbox on affected installations of OpenAI Codex. User interaction is required to exploit this vulnerability in that the target must use Codex to process a repository containing malicious JavaScript. The ZDI has assigned a CVSS rating of 8.6.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (ZDI-26-305) affects OpenAI Codex installations where the sandbox can be bypassed due to insufficient isolation in the JavaScript execution environment. Remote attackers can exploit this by tricking users into processing malicious JavaScript repositories, leading to code execution in the user's context. The issue was reported to OpenAI in February 2026, with the vendor reproducing the behavior but rejecting it as out of scope for their bug bounty and stating it is not part of the default Codex product surface. No patch or official fix has been released, and the vendor has not committed to a remediation timeline. The Zero Day Initiative published the advisory in April 2026, assigning a CVSS score of 8.6.
Potential Impact
Successful exploitation allows remote attackers to escape the sandbox environment in OpenAI Codex and execute arbitrary code with the privileges of the current user. This can lead to full compromise of the user's environment where Codex is running. User interaction is required, as the target must process a repository containing malicious JavaScript. There are no known exploits in the wild at the time of advisory publication. The vendor has not provided an official fix or patch.
Mitigation Recommendations
No official patch or fix is currently available. The vendor has indicated the vulnerability is not in the default Codex product surface and has not accepted it under their bug bounty program. The primary mitigation is to restrict or avoid interaction with the affected Codex installations, especially avoiding processing untrusted or malicious JavaScript repositories. Monitor vendor advisories for any future updates regarding remediation.
Technical Details
- Article Source
- {"url":"http://www.zerodayinitiative.com/advisories/ZDI-26-305/","fetched":true,"fetchedAt":"2026-05-26T19:57:32.745Z","wordCount":312}
Threat ID: 6a15fc93e29bf47b5055df5b
Added to database: 5/26/2026, 8:03:31 PM
Last enriched: 5/26/2026, 8:05:04 PM
Last updated: 5/27/2026, 4:59:18 AM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.