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

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.41% (percentile 37, 2026-12-01)
- **CWE:** CWE-436, CWE-918
- **Published:** 2026-11-26T08:29:33.956Z
- **Modified:** 2026-11-26T09:17:09.580Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker controlling page script or content that steers the agent can add a backslash to a URL query to bypass the PlaywrightBrowser egress policy in pydantic-ai-harness and reach private and blocked hosts.

## Who should check

- Anyone running pydantic-ai-harness \>= 0.24.0, \<= 0.73.0

## Description

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.

## Affected and fixed versions

- pydantic-ai-harness: \>= 0.24.0, \<= 0.73.0 (cvelist)

## Technologies

PyPI packages (AI-matched)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-136638. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-136638.md
Affected: pydantic-ai-harness >= 0.24.0, <= 0.73.0
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for pydantic-ai-harness: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-136638 being exploited?

There is no confirmed exploitation: CVE-2026-136638 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.41% chance of exploitation in the next 30 days (as of 2026-12-01).

### How serious is CVE-2026-136638?

Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-136638?

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

### Is there a fix for CVE-2026-136638?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-136638?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-g87v-g79r-whvj>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-136638>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-136638> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-136638>
