Skip to content

An editorial team and a community building with AI

← All articles

News · Pydantic AI · 2 min read

Event date: · Published:

Pydantic AI fixes PlaywrightBrowser flaw that bypassed network sandboxing

Pydantic AI patched a server-side request forgery flaw in its PlaywrightBrowser tool, where the network egress allowlist missed WebRTC, WebTransport and FedCM traffic, letting malicious pages reach blocked internal hosts.

Pydantic AI disclosed a server-side request forgery vulnerability in its PlaywrightBrowser agent tool through a security advisory published by GitHub Security Advisories on November 25, 2026. The flaw let a malicious web page escape the tool's network egress allowlist by using browser transport protocols the filter did not inspect.

Where the allowlist fell short

  • Tracked as CVE-2026-136641, with a CVSS score of 6.8 (Moderate), classified as CWE-918 (server-side request forgery)
  • Affects pydantic-ai-harness versions 0.24.0 through 0.73.0
  • The PlaywrightBrowser tool's egress allowlist checked HTTP requests and page WebSockets, but not WebRTC (STUN/TURN), WebTransport, WebSocketStream, or FedCM
  • A malicious web page opened by an agent could reach blocked hosts and ports, including private or internal network addresses
  • FedCM requests could additionally leak identity provider cookies

What it means for people who build with AI

Browser automation is becoming a standard capability for coding and research agents, and this case shows that allowlist based sandboxing has to cover low level web transports, not just HTTP. Otherwise, an agent instructed to visit a page can be tricked into reaching hosts and ports that were supposed to stay isolated, including internal services and, through FedCM, identity cookies.

Fix and mitigation

  • The issue is fixed in pydantic-ai-harness version 0.74.0
  • As an interim mitigation, Pydantic AI recommends UDP-aware network egress filtering or avoiding untrusted URLs in the PlaywrightBrowser tool

Sources

Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.

Pydantic AI fixes PlaywrightBrowser flaw that bypassed network sandboxing | vibecoding.inc