CVE-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)
pydantic-ai-harness's PlaywrightBrowser enforces an egress policy (allowed_domains / blocked_domains) on HTTP requests and page WebSockets, but in 0.24.0 through 0.73.0 not on WebRTC (STUN/TURN), WebTransport, WebSockets opened with WebSocketStream, or the browser's own FedCM requests. Script on a page the agent opens could send that traffic to hosts and ports the policy refuses, including private addresses, read WebSocketStream responses, and use FedCM to send data, with the identity provider's cookies, to a host outside the allowlist. Fixed in 0.74.0, with some paths still uncovered.
What it is
GHSA-mj96-6529-3cpf (CWE-918): the assumed attacker is a third party who controls script on a page the agent opens. WebRTC, WebTransport and FedCM only expose connection setup (a page can learn whether a target answers STUN); a WebSocketStream is an ordinary WebSocket the guard didn't see, so the page reads what the server sends, including from a private address. Chromium's Local Network Access blocks WebTransport from public pages to private addresses, but not WebRTC.
FedCM: navigator.credentials.get with an identity provider makes the browser fetch /.well-known/web-identity, config, accounts and client metadata URLs; the page chooses the config path and client ID, and the accounts request carries the provider's cookies from the browser profile.
0.74.0, under the default enforced policy, removes RTCPeerConnection, webkitRTCPeerConnection, WebTransport, WebSocketStream, IdentityCredential and IdentityProvider from every page and frame, refuses FedCM calls, and launches Chromium with FedCM and WebSocketStream off.
Still outside the policy after 0.74.0: WebTransport from workers; WebSocketStream from workers in a browser reached over cdp_url; WebTransport in sandboxed iframes Chromium runs out of process (headless=False and cdp_url); documents loaded before attachment under cdp_context='default'.
How to check
- pip show pydantic-ai-harness: 0.24.0 through 0.73.0 is affected if you use PlaywrightBrowser on pages an attacker can influence.
- Check whether you rely on allowed_domains or blocked_domains as the only thing keeping the agent's browser away from internal services.
How to fix
- Upgrade pydantic-ai-harness to 0.74.0 or later.
- For the paths the upgrade leaves open, run the browser behind a network egress filter that also covers UDP, or don't open untrusted URLs with PlaywrightBrowser.
pip show pydantic-ai-harness | grep -i '^version'
pip install -U 'pydantic-ai-harness>=0.74.0' 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)
- 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)
- 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-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)