PT-2026-108047
CVE-2026-107292
·
Published
2026-10-08
·
Updated
2026-10-15
Description by
CVSS 3.1
6.4
MediumMetricsAV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:L
Name of the Vulnerable Software and Affected Versions
Pydantic AI versions 1.34.0 through 1.107.4
Pydantic AI versions 2.0.0 through 2.29.9
Description
The
Agent.to web() and clai web development chat server fails to validate the Host header of incoming requests. This allows a malicious website visited by a developer to employ DNS rebinding—a technique that tricks a browser into thinking a remote site and a local service share the same origin—to access a loopback-hosted agent. Consequently, the hostile page can read the served UI and submit chat requests that execute agent tools using the local process's privileges and credentials, potentially leading to data disclosure or unauthorized side effects. Standard protections such as binding to localhost, Origin checks, and CSRF tokens are ineffective against this specific attack path.Recommendations
Update Pydantic AI to version 1.107.5 or later.
Update Pydantic AI to version 2.30.0 or later.
If serving the web chat UI behind a reverse proxy or tunnel, explicitly define the allowed hostnames using the
allowed hosts parameter in the Agent.to web() function. Found an issue in the description? Have something to add? Feel free to write us 👾