Forever Security breaks the built-in browsers of Cursor, Copilot, Codex, VS Code and Claude Desktop
Researchers at Forever Security found flaws in the embedded browsers of five AI assistants, Cursor, GitHub Copilot, OpenAI's Codex, Microsoft's VS Code and Anthropic's Claude Desktop, each breaking a core browser-security rule. The impact ranged from running code on the host in Cursor to reading and exfiltrating every file on the disk in Codex, Claude Desktop and VS Code, and spoofing a tab's address in Copilot.
Forever Security names the bug class EMBRACE, for embedded browser trusted like a real one. Each product enriched its embedded browser beyond what a normal browser allows so the assistant could do its job: a local file page that can reach other files, a page that can talk to the app around it, or a page that reports its own address. Each change looks reasonable alone, but each hands a hostile page something a browser normally denies.
The Cursor flaw is a path from prompt injection to code execution. Cursor's integrated browser exposes a call, window.cursorBrowser.send, to every page, which reaches the agent's composer and can forge an element-selected chip that the person barely sees and the agent reads in full. Splitting a command across several attributes and asking the agent to reassemble it got past the agent's refusal to run a single suspicious command. With auto-run on by default and an empty allowlist, one keystroke ran it, and when the sandbox blocked npm install, the agent itself canceled and retried so the package's preinstall script ran with full privileges. Forever Security says success is probabilistic and depends on the model.
In Claude Desktop, Codex and VS Code, a local page is trusted with the host, so one file can read and leak the whole disk, which the researchers call arbitrary content exfiltration. In GitHub Copilot, a page can tell the person and the agent a false address for its own tab, which they call arbitrary context emulation. The post is a technical write-up, and the main story is linked from it.