browser-use before 1.0.0 contains an allowlist bypass vulnerability in the SecurityWatchdog's _is_url_match 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 ([email protected] 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.
https://www.vulncheck.com/advisories/browser-use-before-1.0.0-allowlist-bypass-via-is-url-match
https://github.com/browser-use/browser-use/releases?page=2#release-1.0.0
https://github.com/browser-use/browser-use/pull/6314
https://github.com/browser-use/browser-use/commit/3752f0e3193926c986c3e5d2a07d40bf2439c5cf