CVE-2026-136641

PlaywrightBrowser's egress policy does not cover WebRTC, WebTransport, WebSocketStream or FedCM traffic

Published Nov 25, 2026 CVSS 3.1 · 6.8 Medium EPSS n/a KEV · Not listed
Description
Pydantic AI Harness's PlaywrightBrowser enforces its egress policy on HTTP requests and page WebSockets, but not on WebRTC or WebTransport connections, WebSockets opened with WebSocketStream, or the requests the browser itself sends for FedCM. A page the agent opens can make the browser send WebRTC (STUN and TURN), WebTransport and WebSocketStream traffic, and FedCM requests, to hosts and ports that the policy refuses, including under a policy that limits every request kind to an allowlist.

This affects applications that use PlaywrightBrowser to open pages an attacker can influence. The traffic is each protocol's connection setup, sent to a destination the page chooses. A page can learn whether a target answers a STUN request. No response body from an ordinary internal service was readable through WebRTC, WebTransport or FedCM. A WebSocketStream is an ordinary WebSocket that the WebSocket guard does not see, opened from a page, a frame or a worker, and 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 does not block WebRTC.

A FedCM call (navigator.credentials.get with an identity provider) makes the browser fetch the provider's /.well-known/web-identity, config, accounts and client metadata URLs. The page chooses the config URL's path and the client ID, so it can send data to a host outside allowed_domains or listed in blocked_domains. The accounts request carries the provider's cookies from the browser profile. FedCM requires a provider origin that is HTTPS or loopback.

The assumed attacker is a third party with no access to the application who controls script on a page the agent opens.

Under an enforced egress policy, which is the default, pydantic-ai-harness 0.74.0 removes RTCPeerConnection, webkitRTCPeerConnection, WebTransport, WebSocketStream, IdentityCredential and IdentityProvider from every page and frame, refuses FedCM calls to navigator.credentials.get, and launches Chromium with FedCM and WebSocketStream turned off. These paths stay outside the policy: WebTransport from workers; WebSocketStream from workers in a browser reached over cdp_url; WebTransport in sandboxed iframes that Chromium runs in their own process (headless=False and cdp_url); and documents loaded before attachment under cdp_context='default'.

Upgrade pydantic-ai-harness to 0.74.0 or later. For the paths the upgrade leaves open, and until you upgrade, run the browser behind a network egress filter that also covers UDP, or do not open untrusted URLs with PlaywrightBrowser.

Analysis

AI-generated

Technical impact

Pydantic AI Harness's PlaywrightBrowser enforces its egress policy only for HTTP requests and page WebSockets; it does not apply the same restrictions to WebRTC, WebTransport, WebSocketStream or FedCM traffic. A page that the agent opens can instruct the browser to perform STUN/TURN, WebTransport, WebSocketStream, or FedCM requests to any host and port chosen by the page, including those disallowed by the policy. While responses from internal services are not readable through these protocols, the connection attempts can reveal host reachability and expose private data returned by WebSocketStream connections, thereby providing a covert channel for policy violations.

Affected Systems

Versions of pydantic-ai-harness prior to 0.74.0 are affected. The 0.74.0 update removes RTCPeerConnection, WebTransport, WebSocketStream, IdentityCredential, and IdentityProvider from all pages, and rejects FedCM calls, closing the bypass. Applications that use earlier releases and load third‑party pages are therefore vulnerable.

Risk and Exploitability

The CVSS score of 6.8 indicates a moderate severity, and the vulnerability is not yet listed in CISA KEV or EPSS data, meaning no public exploitation evidence is documented. However, the attack vector relies on an attacker controlling a page that the harness navigates to; such an attacker can easily trigger the bypass, potentially connecting to internal resources or leaking information via WebSocketStream. Since the remaining open paths use UDP for WebTransport, the risk is heightened if UDP traffic is allowed. Defenders should treat this as a medium‑to‑high threat until the fix is applied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade pydantic‑ai‑harness to version 0.74.0 or later
  • Place the browser behind a network egress filter that blocks UDP traffic to close WebTransport and FedCM gaps
  • Avoid opening untrusted or third‑party URLs with PlaywrightBrowser or restrict those origins with policy
  • Temporarily disable WebTransport, WebSocketStream, and FedCM by setting appropriate launch arguments or Chrome flags

Generated by OpenCVE AI on November 25, 2026 at 10:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Pydantic AI Harness's PlaywrightBrowser enforces its egress policy on HTTP requests and page WebSockets, but not on WebRTC or WebTransport connections, WebSockets opened with WebSocketStream, or the requests the browser itself sends for FedCM. A page the agent opens can make the browser send WebRTC (STUN and TURN), WebTransport and WebSocketStream traffic, and FedCM requests, to hosts and ports that the policy refuses, including under a policy that limits every request kind to an allowlist. This affects applications that use PlaywrightBrowser to open pages an attacker can influence. The traffic is each protocol's connection setup, sent to a destination the page chooses. A page can learn whether a target answers a STUN request. No response body from an ordinary internal service was readable through WebRTC, WebTransport or FedCM. A WebSocketStream is an ordinary WebSocket that the WebSocket guard does not see, opened from a page, a frame or a worker, and 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 does not block WebRTC. A FedCM call (navigator.credentials.get with an identity provider) makes the browser fetch the provider's /.well-known/web-identity, config, accounts and client metadata URLs. The page chooses the config URL's path and the client ID, so it can send data to a host outside allowed_domains or listed in blocked_domains. The accounts request carries the provider's cookies from the browser profile. FedCM requires a provider origin that is HTTPS or loopback. The assumed attacker is a third party with no access to the application who controls script on a page the agent opens. Under an enforced egress policy, which is the default, pydantic-ai-harness 0.74.0 removes RTCPeerConnection, webkitRTCPeerConnection, WebTransport, WebSocketStream, IdentityCredential and IdentityProvider from every page and frame, refuses FedCM calls to navigator.credentials.get, and launches Chromium with FedCM and WebSocketStream turned off. These paths stay outside the policy: WebTransport from workers; WebSocketStream from workers in a browser reached over cdp_url; WebTransport in sandboxed iframes that Chromium runs in their own process (headless=False and cdp_url); and documents loaded before attachment under cdp_context='default'. Upgrade pydantic-ai-harness to 0.74.0 or later. For the paths the upgrade leaves open, and until you upgrade, run the browser behind a network egress filter that also covers UDP, or do not open untrusted URLs with PlaywrightBrowser.
Title PlaywrightBrowser's egress policy does not cover WebRTC, WebTransport, WebSocketStream or FedCM traffic
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N'}

Subscriptions

No data.

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
Pydantic
Published
Updated
Nov 25, 2026, 9:39 AM
Reserved
Nov 25, 2026, 12:03 AM
Status
Received
Published
Nov 25, 2026, 10:17 AM
Modified
Nov 25, 2026, 10:17 AM