What happened
PlaywrightBrowser treats any URL containing a backslash as having no host and allows script/asset requests with no host, so a page script can add a backslash to a URL's query to send requests to private addresses or hosts outside the allowed/blocked domain lists, bypassing the egress policy.
Why it matters
A browser-based AI agent's egress control is a key isolation boundary. This bypass lets a third party steering the agent's browser tools exfiltrate data to a disallowed host or probe private/cloud-metadata endpoints, defeating the allowlist the agent relies on.
Attack vector
A page the agent opens, or content that steers the agent's browser tools, can add a backslash to a URL's query to bypass the applied egress policy and send requests to private addresses, to hosts outside allowed_domains, or to hosts in blocked_domains (affects fetch, XHR, sendBeacon, WebSocket and passive asset requests).
Affected systems
pydantic-ai-harness / Pydantic AI Harness PlaywrightBrowser
Mitigation
Upgrade to the patched version of pydantic-ai-harness. Until then, enforce egress outside the browser with a firewall or filtering proxy and do not rely on the browser's domain lists for untrusted pages.