PT-2026-160072
CVE-2026-136640
·
Published
2026-11-26
·
Updated
2026-11-26
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
Pydantic disclosed CVE-2026-136641 (CVSS 6.8, CWE-918 SSRF) on Nov 25, 2026, exposing a blind spot in browser AI agents: setting allowed domains on PlaywrightBrowser did not stop pages from leaking data or probing internal hosts via WebRTC, WebTransport, WebSocketStream, or FedCM. Worse, even the 0.74.0 patch leaves four bypass paths open.
Affecting pydantic-ai-harness 0.24.0 through 0.73.0 (GHSA-mj96-6529-3cpf), PlaywrightBrowser enforced its egress policy only on HTTP requests and standard page WebSockets. Any attacker-influenced page an agent opened could bypass allowlists and blocklists through four unseen channels. WebSocketStream was the sharpest leak: opened from a page, frame, or worker, it established an ordinary WebSocket the guard never saw, letting the page read replies even from private addresses. Chromium's Local Network Access blocks WebTransport to private IPs from public pages, but does not block WebRTC STUN/TURN probes, letting pages test whether internal targets answer.
FedCM turned the browser itself into a courier: calling navigator.credentials.get with an identity provider (over HTTPS or loopback) made Chromium fetch /.well-known/web-identity, config, accounts, and client metadata URLs. Because the page picks the config path and client ID, it could exfiltrate data outside allowed domains while the accounts fetch carried profile cookies. And CVE-2026-136641 was not alone—pydantic-ai v2.74.0 (Nov 24, commit b3d1b57) patched three more PlaywrightBrowser SSRF bugs at once: backslash-in-query URLs treated as hostless (CVE-2026-136638), missed IPv6 site-local fec0::/10 (CVE-2026-136639), and NAT64/ISATAP cloud-metadata bypasses (CVE-2026-136640).
Under an enforced egress policy (the default), pydantic-ai-harness 0.74.0 (PR #14363) strips RTCPeerConnection, webkitRTCPeerConnection, WebTransport, WebSocketStream, IdentityCredential, and IdentityProvider from pages and frames, refuses FedCM calls, and launches Chromium with FedCM and WebSocketStream off. Yet NVD and Pydantic's release notes list four paths that still stay outside the policy after upgrading: WebTransport from workers; WebSocketStream from workers over cdp url; WebTransport in out-of-process sandboxed iframes (headless=False and cdp url); and documents already loaded before attachment under cdp context='default'.
Check your installed version with python -c "import importlib.metadata as m; print(m.version('pydantic-ai-harness'))" and upgrade via pip install -U "pydantic-ai-harness[playwright]>=0.74.0" (note: agents relying on WebRTC or FedCM will break under the new default). Confirm allowed domains is explicitly set—its default is None, allowing every public host—and test via execute js that RTCPeerConnection, WebTransport, and WebSocketStream evaluate to undefined. To close the four remaining gaps, follow Pydantic's own warning: avoid cdp url on untrusted pages and put Chromium behind a network egress firewall that also filters UDP.
Patching four PlaywrightBrowser SSRF CVEs in a single release underscores a structural rule for browser agents: intercepting HTTP and WebSocket calls inside Playwright is defense-in-depth, never a real network boundary. Treat every agent browser as untrusted egress and enforce TCP plus UDP rules at the container or VPC layer.
https://t.co/2uhYDej2Oa
Found an issue in the description? Have something to add? Feel free to write us 👾