Default browser profile allows all hosts and leaves IP URLs unblocked (`block_ip_addresses=False`) |

Author: tiagovilasboasCreated Sep 22, 2026Updated Sep 27, 2026

Static review of public source at commit d8110c5ff87c. No traffic was sent to any Browser Use environment.

Default BrowserProfile leaves navigation unrestricted and IP literals unblocked:

browser_use/browser/profile.py:

allowed_domains: list[str] | set[str] | None = Field(
    default=None,
    description='List of allowed domains for navigation ...'
)
block_ip_addresses: bool = Field(
    default=False,
    description='Block navigation to URLs containing IP addresses ...'
)

The security watchdog then fail-opens when both lists are empty:

browser_use/browser/watchdogs/security_watchdog.py:

# If no allowed_domains specified, allow all URLs
if (
    not self.browser_session.browser_profile.allowed_domains
    and not self.browser_session.browser_profile.prohibited_domains
):
    return True

block_ip_addresses is only consulted when True, so the default agent can be steered to IP literals (loopback, RFC1918, link-local) as easily as to public sites. Prior IP-canonicalization work in this area shows the surface is taken seriously; the remaining gap is the insecure default for agentic browsing.

Suggested change (pick one, document it):

  • Default block_ip_addresses=True for local/agent profiles, with an explicit opt-out for crawlers that need IP targets; or
  • Require allowed_domains (or an allow_all_domains=True escape hatch) before starting a session that can navigate; or
  • Warn once when both lists are empty and IP blocking is off.

Severity: medium as insecure default for an agent that drives a real browser; impact depends on where the browser runs. Defense-in-depth, not a claimed cloud-metadata exploit. No proof-of-concept.

Happy to open a focused PR + unit test around the default profile if that shape helps.