{"id":"CVE-2026-107292","published":"2026-10-08T16:26:48Z","modified":"2026-10-14T01:01:07Z","title":"Pydantic AI Web chat UI (`Agent.to_web()`, `clai web`): the local chat endpoint does not validate the `Host` header","vendor":"pydantic","product":"pydantic-ai","tier":"tail","description":{"text":"Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 1.34.0 until 2.30.0, the Agent.to_web() and clai web development chat server does not validate the Host header, allowing a website visited by a developer to use DNS rebinding to reach a loopback-hosted agent as a same-origin service. The hostile page can read the served UI and submit chat requests that execute agent tools with the local process's privileges and credentials, causing data disclosure or unwanted side effects. Binding to localhost, Origin checks, and CSRF tokens do not prevent the same-origin DNS rebinding path. This issue is fixed in versions 1.107.5 and 2.30.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00194,"percentile":0.05197,"provenance":"source"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"},{"id":"CWE-350","name":"Reliance on Reverse DNS Resolution for a Security-Critical Action"}],"references":[{"url":"https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-q2xc-rrxj-58x9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/7437","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/7438","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/394cc1d31656620704a703a2daed752afa5135fe","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/871c7aeec5dfed2138655ccbccbf15c6d763bae7","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.5","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v2.30.0","tags":["x_refsource_MISC"]}],"priority":{"score":5.5,"factors":[{"name":"EPSS percentile","points":1.04},{"name":"CVSS severity","points":4.48}]},"vendorSlug":"pydantic","affectedVersions":[{"vendor":"pydantic","product":"pydantic-ai","versions":[">= 1.34.0, < 2.0.0b1",">= 2.0.0b1, < 2.30.0"]},{"vendor":"pydantic","product":"pydantic-ai-slim","versions":[">= 1.34.0, < 2.0.0b1",">= 2.0.0b1, < 2.30.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-14T01:00:57.093893Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pydantic-ai","vulnerableRanges":[">=1.34.0, <1.107.5",">=2.0.0b1, <2.30.0"],"patched":["1.107.5","2.30.0"],"from":["GHSA-q2xc-rrxj-58x9","PYSEC-2026-4279"],"provenance":"source"},{"ecosystem":"PyPI","package":"pydantic-ai-slim","vulnerableRanges":[">=1.34.0, <1.107.5",">=2.0.0b1, <2.30.0"],"patched":["1.107.5","2.30.0"],"from":["GHSA-q2xc-rrxj-58x9","PYSEC-2026-4288"],"provenance":"source"}],"summary":{"text":"The Web chat UI served by Pydantic AI's Agent.to_web() and clai web development server does not validate the HTTP Host header, which lets a malicious website reach the loopback-bound chat endpoint through DNS rebinding and treat it as same-origin. An attacker can exploit this when a developer visits the hostile page while the server is running, causing the page to read the UI and submit chat requests that run agent tools with the local process's privileges and credentials.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:34Z"},"euvd":{"id":"EUVD-2026-95099","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pydantic-ai-cve-2026-107286","parents":[{"from":"CVE-2026-107295","to":"CVE-2026-107292","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai","fromFixed":"2.28.0","toFixed":"2.30.0","daysApart":0},{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai-slim","fromFixed":"2.28.0","toFixed":"2.30.0","daysApart":0},{"kind":"same-code","provenance":"machine","files":["pydantic_ai_slim/pydantic_ai/ui/_web/api.py"],"commits":["https://github.com/pydantic/pydantic-ai/commit/394cc1d31656620704a703a2daed752afa5135fe","https://github.com/pydantic/pydantic-ai/commit/871c7aeec5dfed2138655ccbccbf15c6d763bae7","https://github.com/pydantic/pydantic-ai/commit/d2690201a1834005d382dbf5c47e0ed94ef8bf46","https://github.com/pydantic/pydantic-ai/commit/dd2abbdfa029c9ad138e7cc0edd2eaeaf9ed69c0"],"basis":"shared function","functions":["create_api_app"]}]},{"from":"CVE-2026-107286","to":"CVE-2026-107292","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pydantic_ai_slim/pydantic_ai/agent/__init__.py"],"commits":["https://github.com/pydantic/pydantic-ai/commit/453f19feeb7ab1d789f9393b1723c6a73b3d77b2","https://github.com/pydantic/pydantic-ai/commit/394cc1d31656620704a703a2daed752afa5135fe","https://github.com/pydantic/pydantic-ai/commit/871c7aeec5dfed2138655ccbccbf15c6d763bae7"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-107294","published":"2026-10-08","fixed":"2.24.0","kev":false},{"cve":"CVE-2026-107293","published":"2026-10-08","fixed":"2.27.1","kev":false,"link":{"from":"CVE-2026-107293","to":"CVE-2026-107292","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai","fromFixed":"1.107.4","toFixed":"1.107.5","daysApart":0},{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai-slim","fromFixed":"1.107.4","toFixed":"1.107.5","daysApart":0}]}},{"cve":"CVE-2026-107295","published":"2026-10-08","fixed":"2.28.0","kev":false},{"cve":"CVE-2026-107292","published":"2026-10-08","fixed":"2.30.0","kev":false},{"cve":"CVE-2026-107289","published":"2026-10-08","fixed":"2.44.0","kev":false,"link":{"from":"CVE-2026-107292","to":"CVE-2026-107289","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai","fromFixed":"1.107.5","toFixed":"1.107.6","daysApart":0},{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai","fromFixed":"2.30.0","toFixed":"2.44.0","daysApart":0}]}},{"cve":"CVE-2026-107290","published":"2026-10-08","fixed":"2.44.0","kev":false,"link":{"from":"CVE-2026-107292","to":"CVE-2026-107290","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai","fromFixed":"1.107.5","toFixed":"1.107.6","daysApart":0},{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai","fromFixed":"2.30.0","toFixed":"2.44.0","daysApart":0}]}},{"cve":"CVE-2026-107291","published":"2026-10-08","fixed":"2.44.0","kev":false,"link":{"from":"CVE-2026-107292","to":"CVE-2026-107291","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai","fromFixed":"1.107.5","toFixed":"1.107.6","daysApart":0},{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai","fromFixed":"2.30.0","toFixed":"2.44.0","daysApart":0}]}}],"package":"PyPI:pydantic-ai"}}