SMG Group · Research June 2026

AI Security

What Browser Agents Send to the LLM

Query

When a browser-automation agent runs on a cloud LLM, what page data reaches the provider, and does it include passwords, session tokens, and other sensitive form fields?

Research and testing

  • Reviewed browser-use documentation, its SECURITY.md, and GitHub issues #1062 and web-ui #168.
  • Reviewed disclosed vulnerabilities and incident write-ups from Brave, Wiz, Security Affairs, and TechCrunch.
  • Reviewed six academic papers on browser-agent privacy, accessibility-tree attacks, and data exfiltration, plus OWASP guidance and Palo Alto Networks Unit 42 research.
  • Wrote an example of an unfiltered accessibility snapshot of a login form to show what the model receives. It is an illustration, not a captured payload.

Methodology

Desk research across about 20 sources: documentation, issue threads, CVE write-ups, and papers. Each source was checked before it was cited. Mitigations are ranked by effectiveness, based on the consensus in current research.

Results

  1. Three views of the page go to the model. The accessibility tree lists every element's role, name, and current value, and is sent on every step unless filtered. Screenshots are sent when vision is on and show anything visible, including autofilled credentials. Page text is used as a fallback and can include hidden fields. A paper on building browser agents (arXiv 2511.19477) confirms that form contents, potentially including passwords, travel in accessibility snapshots, and treats filtering as a mitigation, not a default.
ref=12 textbox 'Username' value='jsmith' focusable
  ref=13 textbox 'Password' value='hunter2!' type=password focusable
  ref=14 checkbox 'Remember me' checked
  ref=15 button 'Sign in'
  1. Browser agents have documented flaws. A study of eight popular browser agents found 30 vulnerabilities, including disabled browser privacy features and agents that autofill personal data (arXiv 2512.07725). Brave showed Perplexity Comet and Fellou passing text read from screenshots to the model as if the user had typed it, including near-invisible text that carried attack instructions (October 2025). Wiz documented an agent sending data from a logged-in session to an outside server after reading hidden instructions on a GitHub page (February 2025). In browser-use/web-ui v1.3, an unvalidated Base URL field could send the LLM API key to an attacker's server (issue #168).
  2. The same class of attack, a model acting on untrusted content, has produced critical CVEs in other AI tools: EchoLeak in Microsoft 365 Copilot (CVE-2025-32711), CurXecute in Cursor (CVE-2025-54135, CVSS 9.8), and a LangChain Core flaw that could leak environment variables and API keys (CVE-2025-68664, CVSS 9.3, fixed in 1.2.5 and 0.3.81).
  3. Research supports the concern. Adversarial text placed in the accessibility tree can steer agents into leaking login credentials (arXiv 2507.14799). Injected search results can make an agent send out data it holds (arXiv 2510.09093). Agent skills leak credentials through code, error messages, and config files (arXiv 2604.03070). Unit 42 observed 22 techniques in the wild for hiding instructions from people while keeping them readable to agents. OWASP lists sensitive information disclosure as a top-10 LLM risk, and OpenAI has said prompt injection is unlikely ever to be fully solved.
  4. browser-use's sensitive_data option has gaps. The model plans with placeholders and real values are filled in locally, which is sound in principle. But issue #1062 (open) shows it failing silently with some OpenAI models, typing the placeholder key instead of the value, and a retry may expose the real credential. It does not cover screenshots. Without allowed_domains it does not stop the agent from being sent to a phishing page and entering credentials there.
  5. Telemetry. browser-use collects tool usage, session length, and model information by default. It states that URLs and page content are not collected; that is a policy, not a technical guarantee.

Mitigations, most effective first

  1. Keep credentials out of the model's context entirely, using a local layer that fills them in after the model responds (1Password's Secure Agentic Autofill or an equivalent).
  2. Turn vision off (use_vision=False) for any logged-in session or page with account data.
  3. Always set allowed_domains when using sensitive_data.
  4. Prefer a saved login session (storage_state) over password logins.
  5. Scrub the snapshot for password fields, SSNs, and card numbers before it is sent.
  6. Use a dedicated browser profile with no saved passwords, autofill data, or unrelated sessions.
  7. Treat LLM API logs, yours and the provider's, as a sensitive data store.
  8. For high-sensitivity work, use a local model so the data never leaves the machine.

Sources

  1. browser-use docs: sensitive data
  2. browser-use #1062: sensitive_data not working
  3. browser-use/web-ui #168: SSRF exposing the LLM API key
  4. DEV: Your AI agent knows your passwords
  5. Wiz: Agentic browser security, 2025 year-end review
  6. Brave: Unseeable prompt injections in screenshots
  7. TechCrunch: OpenAI says AI browsers may always be vulnerable to prompt injection (December 2025)
  8. 1Password: Closing the credential risk gap for browser-use agents
  9. arXiv 2512.07725: Privacy practices of browser agents
  10. arXiv 2511.19477: Building browser agents: architecture, security, and practical solutions
  11. arXiv 2507.14799: Manipulating LLM web agents via the HTML accessibility tree
  12. arXiv 2603.07557: AgentRaft, detecting data over-exposure in LLM agents
  13. arXiv 2604.03070: Credential leakage in LLM agent skills
  14. arXiv 2510.09093: Exploiting web search tools of AI agents for data exfiltration
  15. Palo Alto Networks Unit 42: Web-based indirect prompt injection in the wild
  16. Security Affairs: CVE-2025-68664 in LangChain Core
  17. OWASP: LLM01:2025 Prompt injection
  18. OWASP: AI Agent Security Cheat Sheet
  19. Browserbeam: Securing AI browser agents (2026)
  20. University of Tennessee OIT: Agentic AI browsers and associated risks