Same-Origin Policy for Agentic Browsers

Xilong Wang, Xiaoxing Chen, Patrick Li, Dawn Song, Neil Gong
6/12/2026
4 citations
cs.CRcs.AIcs.CL

Official code: wxl-lxw/BrowserOS-SOPGuard (3 stars, TypeScript, AGPL-3.0, last commit 2026-07-21).

Abstract

Agentic browsers integrate autonomous AI agents into web browsers, enabling users to accomplish web tasks through natural-language instructions. The same-origin policy (SOP) is a fundamental browser security mechanism that prevents unauthorized automated cross-origin data flows induced by scripts.

Show full abstract

However, whether SOP remains effective in agentic browsers is an open question that has not been systematically studied. In this work, we bridge this gap. We first observe that an agentic browser can itself serve as an automated channel for cross-origin data flows, potentially leading to SOP violations. To investigate this phenomenon, we construct SOPBench, a benchmark for evaluating SOP violations in agentic browsers. Our evaluation shows that existing agentic browsers frequently violate SOP, both in benign settings and under attacks. To address this problem, we propose SOPGuard, an SOP enforcement mechanism tailored to agentic browsers. We implement SOPGuard in BrowserOS, an open-source agentic browser. Extensive evaluations demonstrate that SOPGuard effectively enforces SOP while preserving utility and incurring only a small runtime overhead. Our code and data are available at https://github.com/wxl-lxw/BrowserOS-SOPGuard.

View on arXivView PDF

Code Implementations(1)

AGPL-3.0

Official repository of "Same-Origin Policy for Agentic Browsers"

30TypeScript, C++Apr 16, 20264 months agoAGPL-3.0

Similar Papers

Cite this paper

@article{wang2026sameorigin,
  title  = {Same-Origin Policy for Agentic Browsers},
  author = {Xilong Wang and Xiaoxing Chen and Patrick Li and Dawn Song and Neil Gong},
  year   = {2026},
  eprint = {2606.14027},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.14027v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.14027.svg)](https://codeofpaper.com/paper/2606.14027)

Discussion