[ CVE-2026-107295 · Published 8 Oct 2026 ]
Pydantic AI Web chat UI (`Agent.to_web()`, `clai web`): a website visited by the developer can trigger agent runs and server-side tool execution on the local chat endpoint
CVSS 7.6
EPSS <1%Fix available
[ Description ]Official description
Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 1.34.0 until 1.107.4 and 2.28.0, the Agent.to_web() and clai web development chat endpoint has missing request content-type validation. A website visited by a developer can submit a browser-compatible request to a loopback-hosted chat server, causing the served agent to run and execute tools with the privileges and credentials of the local process; client-relayed approval decisions also leave requires_approval=True tools exposed. Binding to localhost does not prevent a browser page from reaching the loopback address. This issue is fixed in versions 1.107.4 and 2.28.0.
[ Fixes ]Fixes and patches
- pydantic-ai 1.107.4Fixed version · GitHub Advisories · pip package pydantic-ai: upgrade to 1.107.4 or later (affected >= 1.34.0, < 1.107.4)
- pydantic-ai 2.28.0Fixed version · GitHub Advisories · pip package pydantic-ai: upgrade to 2.28.0 or later (affected >= 2.0.0b1, < 2.28.0)
- pydantic-ai-slim 1.107.4Fixed version · GitHub Advisories · pip package pydantic-ai-slim: upgrade to 1.107.4 or later (affected >= 1.34.0, < 1.107.4)
- pydantic-ai-slim 2.28.0Fixed version · GitHub Advisories · pip package pydantic-ai-slim: upgrade to 2.28.0 or later (affected >= 2.0.0b1, < 2.28.0)
- Patch on github.comVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
- Patch on github.comVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
- Patch on github.comVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
- Patch on github.comVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
[ Packages ]Affected open-source packages
- pydantic-ai pipAffected >= 1.34.0, < 1.107.4 · fixed in 1.107.4 · GHSA-h4xc-3qfq-jf93
- pydantic-ai pipAffected >= 2.0.0b1, < 2.28.0 · fixed in 2.28.0 · GHSA-h4xc-3qfq-jf93
- pydantic-ai-slim pipAffected >= 1.34.0, < 1.107.4 · fixed in 1.107.4 · GHSA-h4xc-3qfq-jf93
- pydantic-ai-slim pipAffected >= 2.0.0b1, < 2.28.0 · fixed in 2.28.0 · GHSA-h4xc-3qfq-jf93
[ References ]References
- github.com/pydantic/pydantic-ai/commit/d2690201a1834005d382dbf5c47e0ed94ef8bf46Patch
- github.com/pydantic/pydantic-ai/commit/dd2abbdfa029c9ad138e7cc0edd2eaeaf9ed69c0Patch
- github.com/pydantic/pydantic-ai/pull/7382PatchIssue Tracking
- github.com/pydantic/pydantic-ai/pull/7383PatchIssue Tracking
- github.com/pydantic/pydantic-ai/releases/tag/v1.107.4PatchRelease Notes
- github.com/pydantic/pydantic-ai/releases/tag/v2.28.0PatchRelease Notes
- github.com/pydantic/pydantic-ai/security/advisories/GHSA-h4xc-3qfq-jf93MitigationVendor Advisory