Atomicity for Agents: Exposing, Exploiting, and Mitigating TOCTOU Vulnerabilities in Browser-Use Agents

Linxi Jiang, Zhijie Liu, Haotian Luo, Zhiqiang Lin


Abstract
Browser-use agents automate everyday web tasks through structured DOM interfaces or vision-language models operating on page screenshots. However, web pages can change between observation and action execution due to advertisements, asynchronous loading, and timed updates, causing agents to act on stale assumptions. We frame this temporal mismatch as a time-of-check to time-of-use (TOCTOU) vulnerability in browser-use agents, where page changes during planning can alter the target, value, or validity of a planned action before execution. We introduce DYNWEB, a benchmark spanning synthesized and real-world websites, and evaluate 10 open-source agents as well as Codex’s computer-use feature across different observation and action modalities. All 11 evaluated systems exhibit at least one TOCTOU violation, showing that the vulnerability is not limited to a particular agent design. To reduce this exposure, we design a lightweight pre-execution validation mechanism that reduces the exploitable window from approximately 10 s to 0.13 s. Across three agent frameworks, the mechanism reduces the number of vulnerable DYNWEB cases to 0 out of 14. Adaptive attacks further show that stealthy single-mutation attacks succeed in at most 2.2% of trials, while event-driven timing reveals the limits of pre-execution validation.
Anthology ID:
2026.findings-emnlp.680
Volume:
Findings of the Association for Computational Linguistics: EMNLP 2026
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Hung-Yi Lee, Sunipa Dev, Jessy Li, Desmond Elliott
Venue:
Findings
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
14277–14291
Language:
URL:
https://aclanthology.org/2026.findings-emnlp.680/
DOI:
Bibkey:
Cite (ACL):
Linxi Jiang, Zhijie Liu, Haotian Luo, and Zhiqiang Lin. 2026. Atomicity for Agents: Exposing, Exploiting, and Mitigating TOCTOU Vulnerabilities in Browser-Use Agents. In Findings of the Association for Computational Linguistics: EMNLP 2026, pages 14277–14291, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
Atomicity for Agents: Exposing, Exploiting, and Mitigating TOCTOU Vulnerabilities in Browser-Use Agents (Jiang et al., Findings 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.findings-emnlp.680.pdf