CVE-2026-136638: PlaywrightBrowser egress policy skips requests whose URL query contains a backslash
Pydantic AI Harness's PlaywrightBrowser applies an egress policy to the requests a page makes. It treated any URL containing a backslash as having no host, and it allows script and asset requests with no host. A page script could therefore add a backslash to a URL's query to send requests to private addresses, to hosts outside alloweddomains, and to hosts in blockeddomains.
This affects applications that use PlaywrightBrowser to open pages or follow instructions an attacker can influence. It applies to fetch, XHR, sendBeacon, WebSocket and passive asset requests. Navigation and frames were not affected. A policy that limits every request kind to an allowlist did not prevent data from being sent to another host.
Responses from private services could be read only when the service permits cross-origin reads or accepts the WebSocket connection. Current Chromium versions separately block many requests from public pages to private addresses, but not requests between public hosts, and not when the browser runs behind a forward proxy.
The assumed attacker is a third party with no access to the application who controls script on a page the agent opens, or content that steers the agent's browser tools.
Upgrade pydantic-ai-harness to 0.74.0 or later. Until then, enforce egress outside the browser with a firewall or a filtering proxy, and do not rely on the browser's domain lists for untrusted pages.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pydantic-ai-harnessto a version that resolves this vulnerability.Fixed in 0.74.0 - Compensating control
Enforce egress outside the browser with a firewall or filtering proxy; do not rely on the browser's domain lists for untrusted pages.
Event History
Frequently Asked Questions
Which deployments are realistically exposed?
Applications using PlaywrightBrowser that open pages or follow instructions influenced by an attacker are exposed. The attacker can be a third party with no application access who controls script on a page the agent opens, or content that steers the agent.
What requests can be used to bypass the egress policy?
The bypass applies to fetch, XHR, sendBeacon, WebSocket, and passive asset requests when a backslash is included in the URL query. Navigation and frame requests are not affected.
Does an allowlist for every request type prevent this issue?
No. A policy that limits every request kind to an allowlist still did not prevent data from being sent to another host when this bypass is used.
Can an attacker read responses from private services?
Responses can be read only if the private service permits cross-origin reads or accepts the WebSocket connection. Current Chromium versions also block many public-page-to-private-address requests, but not requests between public hosts or requests made when the browser is behind a forward proxy.