← Lab /Security & privacy

Agentic browsers expose classic XSS and CSRF-style flaws due to missing isolation

Agentic browsers lack isolation, enabling XSS-like and CSRF-like attacks that can exfiltrate user data.

Security & privacy Trail of Bits 13 Jan 2026 Disclosure Real-world evidence

Published as “Lack of isolation in agentic browsers resurfaces old vulnerabilities”

Why it matters

Without isolation, AI-augmented browsers re-introduce decades-old web vulnerabilities, threatening user data and trust.

Summary

The researchers examined several commercial agentic browsers and identified that their AI agents run without proper isolation between trust zones. By chaining prompt-injection (INJECTION) with data-out (CTX_OUT) and cross-origin (CTX_IN) violations, they demonstrated attacks that inject false information, steal session cookies, and exfiltrate private data to attacker-controlled servers. The attacks work on unpatched Chromium builds and rely on the agents automatically reusing user cookies, mirroring classic XSS and CSRF exploits. Mitigations such as isolating tool contexts and extending the Same-Origin Policy are proposed, but the authors note these can reduce usability. The evidence consists of live exploits on real browsers, though no quantitative success rates are reported.

What they found 2

  1. Prompt injection combined with CTX_OUT can leak chat data to attacker-controlled URLs.

    “Using various input vectors, we instructed the agent to craft a specific URL containing data from the chat session and then open it, causing a leak.”

  2. Agentic browsers automatically reuse user cookies for agent-initiated requests, enabling CSRF-style attacks.

    “Since the malicious instructions originate from a separate, attacker-controlled location (such as a website or attachment), this is functionally identical to a CSRF attack.”

Caveats 5

  • Short-term mitigations that isolate tools are effective but "restrictive; it prevents the agent from interacting with services the user is already authenticated to, reducing much of the convenience that makes agentic browsers attractive."
  • "Approaches like CaMeL are still in their research phase," indicating that some proposed defenses are not yet production-ready.
  • "We do not name specific products as the affected vendors declined coordinated disclosure, and these architectural flaws affect agentic browsers broadly."
  • "This approach is efficient ... However, it’s also restrictive; it prevents the agent from interacting with services the user is already authenticated to, reducing much of the convenience that makes agentic browsers attractive."
  • "While still in its research phase, approaches like CaMeL demonstrate that with careful architectural design..."

What’s new here 4

  • A unified threat model defining four trust zones and four violation classes for agentic browsers.
  • Real-world exploits that combine prompt injection with cross-origin data leaks, demonstrating XSS-like and CSRF-like behavior.
  • A proposal to extend the web Same-Origin Policy to AI agents as a systematic mitigation.
  • Short-term and long-term mitigation guidelines, including tool sandboxing and capability-based dual-LLM designs.