← All advisories

CVE-2026-136641mediumSSRF & network2026-11-25

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.

01.

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'.

02.

How to check

  1. pip show pydantic-ai-harness: 0.24.0 through 0.73.0 is affected if you use PlaywrightBrowser on pages an attacker can influence.
  2. Check whether you rely on allowed_domains or blocked_domains as the only thing keeping the agent's browser away from internal services.
03.

How to fix

  1. Upgrade pydantic-ai-harness to 0.74.0 or later.
  2. 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'
04.

Sources

Related on VibeVulns
More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.