CVE-2026-136638: Pydantic AI Harness's PlaywrightBrowser egress policy treated URLs with a backslash as host-less, so page scripts could reach private and blocked hosts (fixed 0.74.0)
Pydantic AI Harness's PlaywrightBrowser gives agents a browser with an egress policy (allowed_domains, blocked_domains, private-address blocking). It treated any URL containing a backslash as having no host and allowed host-less script and asset requests, so a script on a page the agent opened could add a backslash to a URL's query and send requests to private addresses, to hosts outside allowed_domains and to blocked hosts. Fixed in pydantic-ai-harness 0.74.0.
What it is
Affected request kinds: fetch, XHR, sendBeacon, WebSocket and passive asset requests. Navigation and frames were not affected. Even a policy restricting every request kind to an allowlist did not stop data being sent to another host.
Responses from private services could be read only if they allow cross-origin reads or accept the WebSocket. Chromium separately blocks many public-to-private requests, but not requests between public hosts and not behind a forward proxy.
The assumed attacker controls script on a page the agent opens, or content that steers the agent's browser tools (prompt injection). Affected: pydantic-ai-harness >= 0.24.0, <= 0.73.0. Advisory published 25 November 2026; NVD published the CVE on 26 November 2026.
How to check
- Affected: pydantic-ai-harness (pip) >= 0.24.0, <= 0.73.0.
- Compare your installed version (command below).
How to fix
- Upgrade pydantic-ai-harness to 0.74.0 or later.
- Until then, enforce egress outside the browser with a firewall or filtering proxy and don't rely on the browser's domain lists for untrusted pages.
pip show pydantic-ai-harness | grep Version Sources
- highCVE-2026-133161: Pydantic AI Harness's ToolOutputLimits(strip_ansi=True) can be stalled for minutes by crafted tool output, blocking every agent run in the process (fixed 0.70.0)
- highCVE-2026-107295: any website can make the Pydantic AI web chat UI (Agent.to_web, clai web) run your agent and its tools, upgrade to 1.107.4 or 2.28.0
- mediumCVE-2026-136641: Pydantic AI Harness PlaywrightBrowser's egress policy didn't cover WebRTC, WebTransport, WebSocketStream or FedCM, so a page the agent opened could reach blocked hosts (fixed 0.74.0)
- mediumCVE-2026-133505: In Pydantic AI, third-party data in a tool result shaped like a file object was rebuilt as a real file when message history was reloaded, triggering local-network downloads or s3:// reads with the app's credentials (fixed 1.107.10 / 2.66.0)