← All advisories

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

CVE-2026-136638: Pydantic AI Harness's PlaywrightBrowser egress policy treated URLs with a backslash as host-less, so page scripts could reach private and blocked hosts (fixed 0.74.0)

Pydantic AI Harness's PlaywrightBrowser gives agents a browser with an egress policy (allowed_domains, blocked_domains, private-address blocking). It treated any URL containing a backslash as having no host and allowed host-less script and asset requests, so a script on a page the agent opened could add a backslash to a URL's query and send requests to private addresses, to hosts outside allowed_domains and to blocked hosts. Fixed in pydantic-ai-harness 0.74.0.

01.

What it is

Affected request kinds: fetch, XHR, sendBeacon, WebSocket and passive asset requests. Navigation and frames were not affected. Even a policy restricting every request kind to an allowlist did not stop data being sent to another host.

Responses from private services could be read only if they allow cross-origin reads or accept the WebSocket. Chromium separately blocks many public-to-private requests, but not requests between public hosts and not behind a forward proxy.

The assumed attacker controls script on a page the agent opens, or content that steers the agent's browser tools (prompt injection). Affected: pydantic-ai-harness >= 0.24.0, <= 0.73.0. Advisory published 25 November 2026; NVD published the CVE on 26 November 2026.

02.

How to check

  1. Affected: pydantic-ai-harness (pip) >= 0.24.0, <= 0.73.0.
  2. Compare your installed version (command below).
03.

How to fix

  1. Upgrade pydantic-ai-harness to 0.74.0 or later.
  2. Until then, enforce egress outside the browser with a firewall or filtering proxy and don't rely on the browser's domain lists for untrusted pages.
pip show pydantic-ai-harness | grep Version
04.

Sources

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.