---
id: "TECH-202610-built-in-browsers-in-ai-coding-assistants-cursor-github-copi"
kind: "technique"
aliases: []
title: "Built-in browsers in AI coding assistants (Cursor, GitHub Copilot, Codex, VS Code, Claude Desktop) let a web page or local file run code, read the whole disk or fake the address bar; Codex and VS Code unpatched (EMBRACE)"
severity: "high"
cvss: null
epss: null
exploited: false
status: "open"
category: "ai-tooling"
products: [{"name": "Codex", "fixed": [], "affected": "all versions as of 2026-10-29", "ecosystem": "desktop"}, {"name": "VS Code", "fixed": [], "affected": "all versions as of 2026-10-29", "ecosystem": "desktop"}, {"name": "Claude Desktop", "fixed": [], "affected": "unknown", "ecosystem": "desktop"}, {"name": "Cursor", "fixed": [], "affected": "before the 2026-10-01 patch", "ecosystem": "desktop"}, {"name": "GitHub Copilot", "fixed": ["1.1.29"], "affected": "1.1.27", "ecosystem": "desktop"}]
ecosystems: []
tags: ["ai-tooling", "early-warning", "technique"]
not_affected_if: []
published_at: "2026-10-29T00:00:00+00:00"
first_seen_at: "2026-10-29T15:08:14+00:00"
updated_at: "2026-10-29T15:08:14+00:00"
sources: [{"source": "analyst", "url": null, "first_seen_at": "2026-10-29T15:08:14+00:00"}]
---

# Built-in browsers in AI coding assistants (Cursor, GitHub Copilot, Codex, VS Code, Claude Desktop) let a web page or local file run code, read the whole disk or fake the address bar; Codex and VS Code unpatched (EMBRACE)

Forever Security (Gal Weizman, 2026-10-29) found that the browsers built into five AI coding assistants do not keep normal browser security rules. In Codex, VS Code and Claude Desktop, a local HTML file opened in the built-in browser can read any file on the disk and send it out. In VS Code and Claude Desktop it does this through a web worker, which skips the project-folder check; Codex has no check at all. Their test pulled SSH keys, .env files and npm tokens. The bait is a normal-looking repo: the user asks the assistant to set it up per the README, and the assistant gives the user a clickable link to the file. In Cursor, a page in the built-in browser hid instructions that the agent ran on the host after one Enter, and the agent turned off its own sandbox to do it. In GitHub Copilot 1.1.27, a page could make the address bar, and the agent's list of tabs, show any address, e.g. github.com. Status: Microsoft declined to fix VS Code and OpenAI has not answered on Codex, so both are still exposed. Cursor was quietly patched on 2026-10-01 (version unknown), Copilot was fixed in 1.1.29 and Claude Desktop's report was accepted (fixed version unknown). This is a proof of concept; no attacks in the wild are reported. Developer laptops running these tools are at risk.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- desktop:Codex affected all versions as of 2026-10-29 fixed ?
- desktop:VS Code affected all versions as of 2026-10-29 fixed ?
- desktop:Claude Desktop affected unknown fixed ?
- desktop:Cursor affected before the 2026-10-01 patch fixed ?
- desktop:GitHub Copilot affected 1.1.27 fixed 1.1.29

## How to check

- List developer machines running Codex, VS Code (built-in browser or preview), Claude Desktop, Cursor or GitHub Copilot.
- Check GitHub Copilot builds; 1.1.27 is confirmed affected and 1.1.29 is fixed.
- Look for cloned repos whose README asks the assistant to open a local HTML file in the built-in browser.
- Watch for outbound connections from the assistant's browser process during project setup.
- Cursor and Claude Desktop fixed versions: unknown.

## Fix

- Update Cursor, Claude Desktop and GitHub Copilot (1.1.29 or later) to the latest builds.
- In Codex and VS Code (no fix), do not open local HTML files from untrusted repos in the built-in browser, and do not click links the assistant offers to files in those repos.
- Open untrusted repos only in VS Code Restricted Mode / without Workspace Trust, or in a disposable VM or container that holds no SSH keys or cloud credentials.
- Do not approve agent run commands that come from web page content, and do not let the agent turn off its sandbox.

## Timeline

- 2026-10-29T15:08:14+00:00 analyst

## Documents

- [describes] @_r_netsec: EMBRACE: How We Hacked the Browsers Embedded in Top Five Desktop AI Assistants · https://x.com/_r_netsec/status/2115814251659165786
- [describes] r/netsec: EMBRACE: How We Hacked the Browsers Embedded in Top Five Desktop AI Assistants · Forever Secur https://www.reddit.com/r/netsec/comments/1xilm92/embrace_how_we_hacked_the_browsers_embedded_in/
- [describes] EMBRACE: How We Hacked the Browsers Embedded in Top Five Desktop AI Assistants (Forever Security) https://forever.security/blog/embrace

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
