CVE-2026-136641: PlaywrightBrowser's egress policy does not cover WebRTC, WebTransport, WebSocketStream or FedCM traffic

Published Nov 25, 2026
·
Updated

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 alloweddomains or listed in blockeddomains. 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 cdpurl; WebTransport in sandboxed iframes that Chromium runs in their own process (headless=False and cdpurl); and documents loaded before attachment under cdpcontext='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.

Affected Software

1 affected component
pypi/pydantic-ai-harness<0.74.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pydantic-ai-harness to a version that resolves this vulnerability.

    Fixed in 0.74.0
  2. Compensating control

    For paths the upgrade leaves open, and until upgrading, run the browser behind a network egress filter that also covers UDP; alternatively, do not open untrusted URLs with PlaywrightBrowser.

Event History

Nov 25, 2026
CVE Published
via MITRE·09:39 AM
Data Sourced
via MITRE·09:39 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Applications that use PlaywrightBrowser to open pages an attacker can influence are affected. The attacker-controlled page can cause the browser to initiate connections to destinations and ports selected by the page.

2

Does an allowlist-only egress policy prevent this traffic?

No. The affected traffic can reach hosts and ports refused by the policy, including when every configured request type is limited to an allowlist.

3

What can an attacker learn or read through the bypassed protocols?

A page can determine whether a target responds to a STUN request. WebSocketStream connections can let the page read data returned by a server, including from a private address; ordinary internal-service response bodies were not readable through WebRTC, WebTransport, or FedCM.

4

Does Chromium protect private addresses from these connections?

Chromium Local Network Access blocks WebTransport from public pages to private addresses, but it does not block WebRTC. The described WebSocketStream behavior can read server responses from a private address.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203