browser-use before 1.0.0 contains an allowlist bypass vulnerability in the SecurityWatchdog's isurlmatch function that allows attackers to bypass domain restrictions by exploiting a raw-string startswith() comparison instead of parsed hostname validation. Attackers can craft URLs using userinfo injection or domain prefix confusion (e.g..com@attacker.com or .com.attacker.com) to redirect an LLM-controlled navigation to an arbitrary host, exfiltrating sensitive data such as secrets embedded in the URL to an attacker-controlled endpoint.
browser-use before 1.0.0 contains a URL parser differential vulnerability in SecurityWatchdog that allows attackers to bypass alloweddomains, prohibiteddomains, and blockipaddresses checks by crafting a URL with a backslash before the allowed host, exploiting the mismatch between urllib.parse hostname extraction and Chromium's WHATWG-style URL parsing. Attackers can influence an LLM-controlled navigate action, such as through prompt injection, to send requests to loopback or private addresses or arbitrary external hosts before the browser redirects to about:blank, enabling SSRF and persistent state changes on the target server.