Researchers report that malicious local HTML could expose SSH keys and API tokens through the Codex in-app browser

On October 29, security research company Forever Security published research called EMBRACE covering the embedded browsers in Codex, Cursor, VS Code, GitHub Copilot, and Claude Desktop. The researchers said the Codex and VS Code issues remained unpatched when the report was published.

1. Codex's in-app browser may cross the local-file access boundary.

The researchers reported that, after a local HTML file is opened in the Codex in-app browser, its page scripts can read files outside the project directory.

In their test environment, they said they read sensitive files including SSH keys, .env configuration, and npm tokens, and demonstrated that the contents could be sent out. The reported issue concerns file-access restrictions in the embedded browser, rather than the model's reasoning itself.

2. The demonstrated attack does not require the developer to execute a malicious command.

An attacker could place a malicious HTML file in a project and induce a developer to ask Codex to set up the project according to its README.

When Codex provides a local-file preview link and the user opens it, the malicious script could execute.

This does not mean every Codex user is automatically affected. The demonstrated attack requires a user to open a malicious local file in an affected embedded browser.

3. OpenAI has not publicly confirmed a fix.

Forever Security said it reported the issue to OpenAI on July 27 and had received no response or found a fixed version as of its October 29 disclosure.

The Register reported on October 29 that an OpenAI spokesperson said the company was aware of the issue and working to address it; the report did not identify a fixed version or completion date. The researchers’ account of the issue at disclosure and this response come from separate sources.

Developers who use Codex with unfamiliar repositories can avoid opening untrusted local HTML in its in-app browser, particularly when the only reason for trusting the link is that an agent supplied it. The research was not independently reproduced for this report.

Sources: Forever Security's original research, technical analysis, The Register report
Date: October 29, 2026 (time zone not stated).