Skip to main content

Pydantic AI Harness CVE-2026-136641

| EUVDEUVD-2026-135228 LOW
Server-Side Request Forgery (SSRF) (CWE-918)
2026-11-25 Pydantic GHSA-fqpx-wxvv-g359
3.7
CVSS 3.1 · Vendor: Pydantic
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Agent opens attacker-controlled page
  2. Exploit
    Page script invokes WebSocketStream/WebRTC/WebTransport/FedCM
  3. Execution
    Browser connects to policy-refused internal host:port
  4. Impact
    Probe reachability and read WebSocketStream responses from private addresses

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an application that uses PlaywrightBrowser to open a page whose script an unprivileged third-party attacker controls; the attacker needs no access to the application itself. Under the default enforced egress policy, version 0.74.0 neutralizes RTCPeerConnection/webkitRTCPeerConnection, WebTransport, WebSocketStream, IdentityCredential/IdentityProvider, refuses navigator.credentials.get FedCM calls, and launches Chromium with FedCM and WebSocketStream disabled - so on a patched, default deployment these channels are closed. Residual exploitable conditions even after upgrade: WebTransport from workers; WebSocketStream from workers when the browser is reached over cdp_url; WebTransport in sandboxed iframes Chromium runs in their own process (headless=False and cdp_url); and documents loaded before attachment under cdp_context='default'. Limiting factors: FedCM requires a provider origin that is HTTPS or loopback; Chromium Local Network Access blocks WebTransport from public pages to private addresses (but does not block WebRTC); and WebRTC/WebTransport/FedCM expose only reachability/connection-setup, not internal response bodies - only WebSocketStream reads server responses. The only complete fix is upgrading to pydantic-ai-harness 0.74.0 or later; until then, run the browser behind a network egress filter that also covers UDP, or do not open untrusted URLs with PlaywrightBrowser.

Impact

This is a medium-severity SSRF (CWE-918, CVSS 6.8) whose real-world priority is moderate rather than urgent. The NVD vector (AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N) reflects a network-reachable, no-privilege, scope-changing flaw, but AC:H and the description together show the practical impact is constrained: the bypass yields connection-setup traffic and STUN reachability probing to policy-refused internal hosts, and only the WebSocketStream path actually lets the page read a server's response (including from private addresses) - WebRTC, WebTransport and FedCM do not return an ordinary internal service's body. The CVSS C:H therefore looks generous for most of the bypass paths and is really driven by the WebSocketStream read primitive. No active exploitation is indicated (not in CISA KEV), and no EPSS score or working PoC was supplied - only the vendor advisory reference - so exploitation status is 'no public exploit identified at time of analysis.' The vuln.today decision label is 'this_month,' consistent with a fix-promptly-but-not-emergency posture. Net: a legitimate SSRF/egress-policy-bypass worth patching, but the limited read capability, the niche product footprint, and the precondition of an agent opening attacker-controlled pages keep it below high-urgency despite the network vector.

Exploit ScenarioDerived

An application uses PlaywrightBrowser with the default enforced egress policy and lets its agent open a URL an attacker influences. The attacker's page script opens a WebSocketStream (or issues WebRTC/WebTransport/FedCM setup) to an internal host and port the policy would otherwise refuse, probing internal reachability and, via WebSocketStream, reading what an internal WebSocket-speaking service returns. No public exploit code is identified; only the vendor GHSA advisory is referenced.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 25, 2026

Pydantic AI Harness's PlaywrightBrowser applies its egress policy to ordinary HTTP requests and page WebSockets but not to WebRTC (STUN/TURN), WebTransport, WebSockets opened through WebSocketStream, or the background fetches Chromium performs for FedCM, so script on a page the agent opens can drive the browser to contact hosts and ports that allowed_domains/blocked_domains refuse. The affected range is pydantic-ai-harness 0.24.0 through 0.73.0, and the exposure applies to any application that points PlaywrightBrowser at pages a third party can influence. Practical impact is bounded: WebRTC, WebTransport and FedCM leak reachability and connection-setup only (no internal response bodies), while WebSocketStream is the one channel that lets the page read what a server, including one on a private address, sends back. No public exploit was identified at time of analysis; 0.74.0 closes these channels under the default enforced policy but leaves WebTransport and WebSocketStream reachable from workers, sandboxed out-of-process iframes (headless=False with cdp_url) and documents loaded before attachment under cdp_context='default'.

RemediationAI

Vendor-released patch: pydantic-ai-harness 0.74.0 (upgrade to 0.74.0 or later), which under the default enforced egress policy strips RTCPeerConnection, webkitRTCPeerConnection, WebTransport, WebSocketStream, IdentityCredential and IdentityProvider from every page and frame, blocks navigator.credentials.get for FedCM, and starts Chromium with FedCM and WebSocketStream disabled; see https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-mj96-6529-3cpf. The upgrade is not complete on its own: WebTransport from workers, WebSocketStream from workers when the browser is reached over cdp_url, WebTransport inside sandboxed iframes Chromium runs in their own process (headless=False combined with cdp_url), and documents loaded before attachment under cdp_context='default' all stay outside the policy, so deployments using cdp_url, headless=False or the default CDP context should treat those paths as open. For those residual paths, and for anyone who has not yet upgraded, the vendor-recommended compensating controls are to run the browser behind a network egress filter that also covers UDP (a TCP-only proxy or HTTP-level allowlist is insufficient because WebRTC STUN/TURN bypasses it), or to stop opening untrusted URLs with PlaywrightBrowser entirely; the trade-off is that a UDP-aware egress filter can break legitimate WebRTC-dependent sites, and restricting the agent to vetted URLs removes browsing capability. Note that FedCM-based abuse additionally requires an HTTPS or loopback provider origin, and Chromium's Local Network Access already blocks WebTransport from public pages to private addresses, though not WebRTC.

Affected VersionsENISA

pydantic-ai-harness 0.24.0 ≤0.73.0

Affected Packages

euvd pydantic_ai_harness no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is CWE-918 server-side request forgery expressed at the browser-protocol layer. PlaywrightBrowser is a headless Chromium driver used by Pydantic AI agents; its egress guard intercepts the request and page-WebSocket surfaces that Playwright exposes, but several Chromium subsystems originate traffic below that interception point. RTCPeerConnection/webkitRTCPeerConnection emit STUN and TURN connection-setup packets over UDP to a page-selected destination, giving a reachability oracle; WebTransport opens an HTTP/3-style session to a page-chosen host; WebSocketStream creates an ordinary WebSocket through a path the WebSocket guard never observes, and unlike the other channels it returns readable application data to the page, including from private addresses. FedCM (navigator.credentials.get with an identity provider) makes the browser itself fetch the provider's /.well-known/web-identity, config, accounts and client-metadata URLs, with the page controlling the config URL path and client ID, so data can be steered to a host outside allowed_domains or one listed in blocked_domains, and the accounts request carries the profile's provider cookies. Boundary conditions matter: FedCM requires an HTTPS or loopback provider origin, and Chromium's Local Network Access blocks WebTransport from public pages to private addresses but does not block WebRTC. The vendor fix works by removing RTCPeerConnection, webkitRTCPeerConnection, WebTransport, WebSocketStream, IdentityCredential and IdentityProvider from every page and frame, refusing navigator.credentials.get FedCM calls, and launching Chromium with FedCM and WebSocketStream disabled - an in-page API-removal approach rather than a network-layer control, which is why worker contexts, out-of-process sandboxed iframes and pre-attachment documents under the default CDP context remain outside it.

Know when Pydantic gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Pydantic) PRIMARY 3.7 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 5.8 MEDIUM

Attacker-controlled page script reliably triggers the bypass (AC:L, PR:N), pivots the browser into the internal network (S:C), but yields only limited disclosure - reachability plus WebSocketStream responses - so C:L, I:N, A:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N

Primary rating from Vendor (Pydantic).

CVSS VectorVendor: Pydantic

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

2
Severity Changed
Nov 26, 2026 - 15:22 NVD
MEDIUM LOW
CVSS changed
Nov 26, 2026 - 15:22 NVD
6.8 (MEDIUM) 3.7 (LOW)

DescriptionCVE.org

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

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Low
niche, recent AI-agent browser-automation library, limited production footprint
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

18
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +18
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

CVE-2025-55526 CRITICAL POC
9.1 Aug 26

n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w

CVE-2026-25580 HIGH POC
8.6 Feb 06

Pydantic AI versions 0.0.26 through 1.55.x contain a server-side request forgery vulnerability in URL download functiona

CVE-2024-3772 HIGH POC
7.5 Apr 15

Regular expression denial of service in Pydanic < 2.4.0, < 1.10.13 allows remote attackers to cause denial of service vi

CVE-2026-84381 HIGH
8.1 Sep 02

HTTPX2's SOCKS5 proxy implementation omits TLS negotiation for WebSocket Secure (wss://) origins, exposing the full WebS

CVE-2026-107295 HIGH
7.6 Oct 08

Cross-site request forgery in Pydantic AI's development web chat UI allows any website a developer happens to visit whil

CVE-2026-107286 HIGH
7.5 Oct 08

Concurrency slot exhaustion in Pydantic AI 2.10.0 through 2.52.x lets streamed model requests permanently occupy slots i

CVE-2026-133161 HIGH
7.5 Nov 19

Denial of service in Pydantic AI Harness (pydantic-ai-harness) 0.4.0 through 0.69.0 lets attacker-influenced tool output

CVE-2026-84382 HIGH
7.5 Sep 02

Memory exhaustion via unbounded decompression in HTTPX2 (all versions before 2.12.0) allows any HTTP server the client c

CVE-2021-29510 HIGH
7.5 May 13

Pydantic is a data validation and settings management using Python type hinting. Rated high severity (CVSS 7.5), this vu

CVE-2026-133421 MEDIUM
6.9 Nov 20

Quadratic-time validation of untrusted ISO 8601 duration strings in Pydantic V1 lets remote attackers exhaust CPU by sub

CVE-2026-133422 MEDIUM
6.9 Nov 20

Denial of service in Pydantic V1 arises when an application validates attacker-supplied lists into a field constrained w

CVE-2026-48782 MEDIUM
6.8 Jun 16

Server-Side Request Forgery in Pydantic AI (versions 1.56.0-1.101.0, 2.0.0b1, 2.0.0b2) allows unauthenticated network at

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy