Skip to content

Security advisoryHigh

browser-use: allowed_domains bypass with look-alike hosts

browser-use 0.x let look-alike hosts pass full-URL allowed_domains patterns. Fixed in 1.0.0; upgrade off 0.x.

On this page

browser-use SecurityWatchdog - full-URL allowed_domains patterns matched by string prefix, so look-alike hosts passed the navigation allowlist (GHSA-8chv-5q4v-6qhv)

Severity
High
Status
Patched
Published
Report to public
98 days
Product
browser-use (Python library for AI browser agents) in browser-use/browser-use
Affected versions
browser-use 0.6.0 through 0.13.14 (the last 0.x release, 2026-10-26). Fixed in 1.0.0 (2026-11-10).
GitHub advisory
GHSA-8chv-5q4v-6qhvPrivate; in triage, not yet published by the maintainer
CVE
Pending (requested via MITRE CNA-LR)
Weaknesses (2)
As filed on the advisory.
Credit
Finder: Aaron Elijah Mars of Aeon. Tool: Aeon (https://www.aeon.fun).

What users should do now#

  1. Upgrade to browser-use 1.0.0 or later. 1.0 is a rewrite, so check its migration notes; no 0.x release has the fix.
  2. If you stay on 0.x for now, write allowed_domains entries as host patterns (example.com or *.example.com) instead of full URLs (https://example.com). The host-only branch compares the parsed host and is not affected.
  3. If an agent on 0.x used full-URL patterns while logged in to accounts, review where it browsed and treat sessions it held as possibly exposed.

Summary#

allowed_domains is the browser-use setting that keeps an agent's real browser on a list of approved sites. In 0.x, SecurityWatchdog._is_url_match() handled each pattern. Host patterns were compared against the parsed host, but a pattern containing :// was checked with url.startswith(pattern) on the raw URL string. The library's own setting description gives https://example.com as an example, and that pattern also matched https://example.com.attacker.test/..., a different domain anyone can register, and https://example.com@attacker.test/..., where the browser goes to attacker.test and treats example.com as a username.

This is the same kind of bug as the earlier GHSA-x39x-9qw5-ghrf (CVE-2025-47241), which fixed the userinfo trick for host patterns. The full-URL branch kept the raw string check.

Affected versions#

browser-use 0.6.0, where SecurityWatchdog and this check first appear, through 0.13.14, the last 0.x release. Only setups whose allowed_domains list has full-URL patterns (with ://) are affected; host-only patterns are not.

Impact#

  • Allowlist bypass. The same check gates the URL before navigation, the URL after a redirect, and every new tab. A page the agent visits could redirect, open a tab or steer the agent to a look-alike host, and the watchdog let it through.
  • Real sessions. browser-use drives a real browser that often holds the operator's cookies and logins. Once off the allowlist, the agent can be shown attacker content and prompted to enter or reveal data there.

The report rated this High. We showed it by running the 0.13.14 check on these URLs: the two look-alike URLs matched and an unrelated host did not. It was not run against a live agent.

Affected code#

Permalinks at the 0.13.14 tag (2cc7189).

Fix#

  • 3752f0e (2026-11-06) adds pattern_matches() in browser_use/domains.py. It splits a full-URL pattern into scheme, host, port and path and compares them with the parsed URL, so a look-alike host or a username before @ no longer matches.
  • 23a9d32 (2026-11-05) removed the 0.x engine, including security_watchdog.py.
  • Released in 1.0.0 (2026-11-10). Checked again at main (f109c38) on 2026-12-03: pattern_matches() still compares parsed hosts.

Timeline#

  1. Reported privately via GitHub PVR (GHSA-8chv-5q4v-6qhv), with a suggested fix.
  2. We follow up on the advisory; no reply.
  3. The 1.0 rewrite adds host-based pattern matching (3752f0e).
  4. browser-use 1.0.0 released with the fix.
  5. We confirm the fix, tell the maintainer this write-up will go public on 2026-12-03 and invite changes; no reply.
  6. Public write-up; CVE requested via MITRE CNA-LR.

Credit#

Finder: Aaron Elijah Mars of Aeon. Tool: Aeon.

References#

One agent was never enough.

Run Aeon (opens in a new tab)