Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

ZDI-26-305: (0Day) OpenAI Codex Sandbox Escape Vulnerability

0
Low
Published: Tue Apr 28 2026 (04/28/2026, 05:00:00 UTC)
Source: Zero Day Initiative

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

AILast updated: 05/26/2026, 20:05:04 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses