Skip to content
DayZeroHub
Medium Not yet writtenCVSS 5.9CVE-2026-136638

CVE-2026-136638: PlaywrightBrowser egress policy skips requests whose URL query contains a backslash

pydantic pydantic-ai-harness

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-136638: medium-severity vulnerability (CVSS 5.9) in pydantic pydantic-ai-harness.

What happened

Original description from the source: Pydantic AI Harness's PlaywrightBrowser applies an egress policy to the requests a page makes. It treated any URL containing a backslash as having no host, and it allows script and asset requests with no host. A page script could therefore add a backslash to a URL's query to send requests to private addresses, to hosts outside allowed_domains, and to hosts in blocked_domains. This affects applications that use PlaywrightBrowser to open pages or follow instructions an attacker can influence. It applies to fetch, XHR, sendBeacon, WebSocket and passive asset requests. Navigation and frames were not affected. A policy that limits every request kind to an allowlist did not prevent data from being sent to another host. Responses from private services could be read only when the service permits cross-origin reads or accepts the WebSocket connection. Current Chromium versions separately block many requests from public pages to private addresses, but not requests between public hosts, and not when the browser runs behind a forward proxy. The assumed attacker is a third party with no access to the application who controls script on a page the agent opens, or content that steers the agent's browser tools. Upgrade pydantic-ai-harness to 0.74.0 or later. Until then, enforce egress outside the browser with a firewall or a filtering proxy, and do not rely on the browser's domain lists for untrusted pages.

Why it matters

Medium severity, CVSS 5.9.

Affected products and versions

pydantic pydantic-ai-harness >= 0.24.0, <= 0.73.0

ProductVersionsFixed in
pydantic pydantic-ai-harness>= 0.24.0, <= 0.73.0—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-436, CWE-918

Relevant change history

  1. Published

    Preliminary advisory published.