# Researchers found sandbox escapes or boundary bypasses in Cursor, Codex, Gemini CLI, and Antigravity by writing files that trusted tools use; most are patched

Researchers found file-based sandbox escapes or boundary bypasses in four AI coding agents; most issues have been patched.

Record as of 21 July 2026. Labels written by Codex, for review. JSON: <https://texxr.com/v3/article/1173333.json>

## Researchers found sandbox escapes or boundary bypasses in Cursor, Codex, Gemini CLI, and Antigravity by writing files that trusted tools use; most are patched

*as of 21 July 2026; judged by one reader, needs review*

**In one line:** The publisher’s headline and the coverage around it.

BleepingComputer · Ax Sharma · [21 July 2026](/2026/07/21) · [Read original](https://www.bleepingcomputer.com/news/security/cursor-codex-gemini-cli-antigravity-hit-by-sandbox-escapes/)

Security researchers broke out of the sandboxes in four widely used AI coding agents, including [Cursor](/entity/cursor), [OpenAI](/entity/openai)'s [Codex](/entity/codex) …

**Context**

AI-agent security coverage has moved from attempts to bypass model guardrails—such as [many-shot jailbreaking](/862141)—to weaknesses created when agents act inside developer environments. The relevant boundary is no longer only what a model will say, but what its surrounding tools will trust and execute.

The report also extends a known [Antigravity](/search?q=%40%22Antigravity%22) risk: an [indirect prompt-injection path through a browser subagent](/893004) showed how agent workflows can be manipulated through their integrations. [Codex](/entity/codex)'s [recent native sandboxing on Windows](/1164613) makes the implementation of those boundaries especially consequential.

*First-order effects*

- [Cursor](/entity/cursor), Codex, [Gemini CLI](/entity/gemini-cli), and Antigravity users need to apply available fixes and reassess projects or workspaces where agent-created files can be consumed by trusted tools.
- The affected vendors must treat file handoffs and downstream tool configuration as part of the sandbox boundary, not merely rely on isolation around the agent process.

*Second-order effects*

- Enterprise teams adopting coding agents will place more scrutiny on filesystem permissions, tool configuration, and the trust relationship between agent outputs and developer tooling.
- Competing coding-agent providers are pushed to demonstrate that their sandboxes account for cross-tool workflows, since a boundary bypass can negate otherwise strong isolation.

*Third-order effects*

- If this pattern persists, AI coding-agent security will be judged increasingly by end-to-end workflow containment rather than model-level safeguards alone.
- The industry may shift toward more explicit controls over what agents can write and which trusted tools may later consume those artifacts, reducing the practical blast radius of compromised workflows.

**The trend:** AI-agent security is shifting from prompt and model defenses toward controlling the permissions, artifacts, and tool chains through which agents take action.

Related: [Agentic Blast Radius](/concepts#agentic-blast-radius) · [Model access as a security boundary](/concepts#model-access-as-security-boundary) · [Codex](/entity/codex) · [Gemini CLI](/entity/gemini-cli) · [OpenAI releases a Codex app for Windows with native sandboxing and sup](/1164613)

**Entities**

- [AI](/entity/ai)
- [Codex](/entity/codex)
- [Gemini CLI](/entity/gemini-cli)
- [OpenAI](/entity/openai)
- [Antigravity](/search?q=%40%22Antigravity%22)
- [Cursor](/entity/cursor)

**Analysis**

- [OpenAI Built a Web Its Models Can Browse Offline](/posts/openai-offline-web-stateful-agent-training)
- [Google’s $1.5B Mechanize Talks Skip a Buyout](/posts/mechanize-agentic-coding-control-plane)
- [Cursor Entered Kimi’s Training Loop for Composer 2](/posts/kimi-k3-cursor-coding-control-plane)
- [Cursor’s 3× Tier Tests the IDE Margin Moat](/posts/cursor-composer-2-orchestration-economics)
- [The 29-Minute Case for an Agent Runtime Badge](/posts/agent-runtime-security-the-agent-needs-a-badge)
- [Antares Makes Agent Permission the AppSec Perimeter](/posts/cisco-antares-scanner-lost-the-gate)
- [OpenAI’s Agents Need a Fence](/posts/openai-agent-management)
- [10 Million Users Make Permissions the New Perimeter](/posts/codex-agent-security-permissions-graph)

**Related coverage**

- [The Week of Sandbox Escapes](https://www.pillar.security/blog/the-week-of-sandbox-escapes) · Pillar Security
- [Pillar Research shows sandboxes are inadequate for agentic AI, Google decides not to patch](https://www.neowin.net/news/pillar-research-shows-sandboxes-are-inadequate-for-agentic-ai-google-decides-not-to-patch/) · Neowin · Paul Hill
- [7 Sandbox Escape Vulnerabilities Across 4 Coding Agent Vendors](https://lobste.rs/s/bper0d/7_sandbox_escape_vulnerabilities_across) · Lobsters
- [Top AI coding agents can be easy victims to sandbox escapes, showing they aren't as secure as they claim to be](https://www.techradar.com/pro/security/top-ai-coding-agents-can-be-easy-victims-to-sandbox-escapes-showing-they-arent-as-secure-as-they-claim-to-be) · TechRadar · Sead Fadilpašić
- [AI agents can escape sandboxes without ever breaking them](https://www.csoonline.com/article/4199408/ai-agents-can-escape-sandboxes-without-ever-breaking-them.html) · CSO · Shweta Sharma

**Discussion**

- @axsharma.com Ax Sharma bluesky · Pillar Security researchers broke out of the sandboxes in four widely used AI coding agents, including Cursor, OpenAI's Codex, Google's Gemini CLI and Antigravity, without attacking the sandbox head-on.  —  www.bleepingcomputer.com/news/ securit...

**Relationships**

- [Security researchers](/search?q=%40%22Security+researchers%22) controversy [Cursor](/entity/cursor), [Codex](/entity/codex), [Gemini CLI](/entity/gemini-cli), [Antigravity](/search?q=%40%22Antigravity%22) · confirmed · Researchers found sandbox escapes or boundary bypasses in four AI coding agents through files later used by trusted tools.
- [Cursor](/entity/cursor), [Codex](/entity/codex), [Gemini CLI](/entity/gemini-cli), [Antigravity](/search?q=%40%22Antigravity%22) launch [sandbox escape vulnerabilities](/search?q=%40%22sandbox+escape+vulnerabilities%22) · confirmed · Most of the identified AI coding agent sandbox vulnerabilities have been patched.

**Similar stories**

- [OpenAI rolls out Codex Security, an AI agent that evolved from its research project Aardvark to automate vulnerability discovery, validation, and remediation](https://texxr.com/1164774/openai-rolls-out-codex-security) · Axios, 7 March 2026 · [publisher](<https://www.axios.com/2026/03/06/openai-codex-security-ai-cyber>) · 59%
- [Sources: OpenAI, Anthropic, and researchers are probing tens of thousands of frontier model security incidents, including sandbox escapes and website hijacking](https://texxr.com/1295785/openai-anthropic-probe-ai-security-incidents) · Axios, 28 September 2026 · [publisher](<https://www.axios.com/2026/09/26/openai-anthropic-thousands-ai-security-incidents>) · 58%
- [Security researchers in OpenAI's bug bounty program hacked OpenAI in July and accessed its “monorepo” on GitHub, using Opus 4.8 for cybersecurity and Opus 5](https://texxr.com/1287447/researchers-hack-openai-monorepo-using-claude) · Wall Street Journal, 19 September 2026 · [publisher](<https://www.wsj.com/tech/ai/hackers-used-anthropics-claude-to-break-into-openai-b40ba883?st=Jfx6Z1>) · 57%
- [OpenAI releases a Codex app for Windows with native sandboxing and support for developer environments in PowerShell, after launching a macOS app in February](https://texxr.com/1164613/openai-launches-codex-windows-app-with-sandboxing) · Engadget, 5 March 2026 · [publisher](<https://www.engadget.com/ai/openai-brings-its-codex-coding-app-to-windows-195345429.html>) · 57%
- [Cursor launches Cursor 3, an “agent-first” coding product designed to compete with Claude Code and Codex by letting developers manage all their agents in Cursor](https://texxr.com/1166457/cursor-launches-cursor-3-agent-first-coding) · Wired, 4 April 2026 · [publisher](<https://www.wired.com/story/cusor-launches-coding-agent-openai-anthropic/>) · 55%
- [A look at two opposing perspectives on AI agent sandboxing: infosec says labs need better containment while AI alignment says sandboxes cannot contain agents](https://texxr.com/1296143/ai-safety-experts-debate-agent-sandboxing) · A Few Thoughts on Cryptographic Engineering, 2 October 2026 · [publisher](<https://blog.cryptographyengineering.com/2026/09/30/is-sandboxing-sufficient-to-contain-rogue-agents/>) · 54%
- [Researchers detail systemic vulnerabilities in AI agentic browsers, including Perplexity's Comet and Fellou, related to indirect prompt injection attacks](https://texxr.com/891637/researchers-detail-agentic-browser-prompt-injection-vulnerabilities) · Brave, 22 October 2025 · [publisher](<https://brave.com/blog/unseeable-prompt-injections/>) · 54%
- [Researchers: OpenAI agents attacked Ruby package manager RubyGems in May; OpenAI says its agents used RubyGems to access the internet to do “benign tasks”](https://texxr.com/1286992/openai-agents-attack-rubygems-package-manager) · Wall Street Journal, 13 September 2026 · [publisher](<https://www.wsj.com/tech/ai/cyberattack-by-rogue-ai-swarm-stokes-fears-of-out-of-control-agents-473a0352?st=geQgvD&reflink=desktopwebshare_permalink>) · 53%
- [OpenAI debuts Codex CLI, an open-source coding agent tool for terminals that links AI models with local code and computing tasks, like moving files](https://texxr.com/884725/openai-debuts-codex-cli-for-terminals) · TechCrunch, 17 April 2025 · [publisher](<https://techcrunch.com/2025/04/16/openai-debuts-codex-cli-an-open-source-coding-tool-for-terminals/>) · 53%
- [After reports of GPT-5.6 deleting files, OpenAI says the issue most commonly occurs in full-access mode without sandboxing and it's working to mitigate the risk](https://texxr.com/1173142/openai-addresses-gpt-5-6-file-deletions) · @thsottiaux, 17 July 2026 · [publisher](<https://x.com/thsottiaux/status/2077630111499882637>) · 53%
- [Sources: OpenAI has discovered other instances where AI agents escaped containment; none of the agents were thought to have left OpenAI's network](https://texxr.com/1174131/openai-discovers-more-agents-escaped-containment) · Reuters, 1 August 2026 · [publisher](<https://www.reuters.com/business/openai-finds-evidence-other-ai-agents-escaped-containment-it-widens-hacking-2026-07-31/>) · 53%
- [Google's Project Zero discloses a zero-day sandbox exploit on Windows 7 and 10; Microsoft says it has no evidence of the flaw being widely exploited](https://texxr.com/959541/project-zero-discloses-windows-zero-day-sandbox-exploit) · Ars Technica, 31 October 2020 · [publisher](<https://arstechnica.com/information-technology/2020/10/googles-project-zero-discloses-windows-0day-thats-been-under-active-exploit/>) · 53%
- [Google says its Big Sleep AI agent for finding unknown software vulnerabilities recently discovered a critical SQLite flaw that “was at risk of being exploited”](https://texxr.com/887939/google-big-sleep-discovers-critical-sqlite-flaw) · The Record, 16 July 2025 · [publisher](<https://therecord.media/google-big-sleep-ai-tool-found-bug>) · 53%
- [OpenAI releases an “early” version of its open-source Codex Security CLI for scanning repositories, verifying fixes, adding security checks to CI/CD, and more](https://texxr.com/1173883/openai-releases-codex-security-cli) · @openai, 29 July 2026 · [publisher](<https://x.com/openai/status/2082263717916586117>) · 53%
- [Cybersecurity experts fault Anthropic and OpenAI for sloppy safeguards and inadequate human oversight after their models broke into outside organizations](https://texxr.com/1174132/anthropic-openai-face-cybersecurity-safeguard-failures) · Bloomberg, 1 August 2026 · [publisher](<https://www.bloomberg.com/news/articles/2026-07-31/anthropic-openai-cyber-failures-point-to-us-security-risks>) · 53%
- [Researchers at Anthropic, Oxford, Stanford, and MATS create Best-of-N Jailbreaking, a black-box algorithm that jailbreaks frontier AI systems across modalities](https://texxr.com/880629/researchers-create-best-of-n-jailbreaks-ai-systems) · 404 Media, 22 December 2024 · [publisher](<https://www.404media.co/apparently-this-is-how-you-jailbreak-ai/>) · 53%
- [Building on ForcedEntry, Trellix researchers find now-fixed bugs in iOS and macOS, which focus on NSPredicate and could let attackers bypass Apple's sandbox](https://texxr.com/836338/trellix-finds-nspredicate-bugs-in-ios-macos) · Wired, 21 February 2023 · [publisher](<https://www.wired.com/story/trellix-ios-macos-bug-nspredicate/>) · 53%
- [Mythos Preview system card: the model was able to escape a sandbox after it was instructed to try, and publicly detailed its exploit without being prompted](https://texxr.com/1166630/mythos-preview-escapes-sandbox-reveals-exploit) · Business Insider, 8 April 2026 · [publisher](<https://www.businessinsider.com/anthropic-mythos-latest-ai-model-too-powerful-to-be-released-2026-4>) · 53%
- [OpenAI says its models, including GPT-5.6 Sol and “an even more capable pre-release model”, breached Hugging Face while OpenAI tested their cyber capabilities](https://texxr.com/1173410/openai-models-breach-hugging-face-sandbox) · Axios, 22 July 2026 · [publisher](<https://www.axios.com/2026/07/21/openai-says-hugging-face-breach-caused-by-one-its-models>) · 52%
- [Anthropic says a malicious actor used access to Cursor's marketplace to publish a “tampered” copy of the Claude Code extension, which it didn't build or publish](https://texxr.com/1298250/anthropic-warns-of-tampered-claude-code-extension) · @felixrieseberg, 1 November 2026 · [publisher](<https://x.com/felixrieseberg/status/2116170451466543578>) · 52%

- **Judged:** Scribe wrote the corpus context.

## Sources

### The TEXXR article archive

*Section `articles`, as of 21 July 2026; judged by one reader, needs review*

The archive supplies the article and its links. Similar stories use the saved text vectors.

**Method**

- The archive holds the headline, publisher excerpt, coverage and discussion.
- Relationships use the article ID. Similar stories use the archive’s stored text vectors.

**Limits**

- Some articles have no Scribe context, recorded tags or relationships.
