`pydantic-ai-slim` web UI `/api/chat` accepts browser-simple cross-origin requests that can trigger agent tool execution
Summary
| CVE | CVE-2026-107295 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-10-08 17:17:15 UTC |
| Updated | 2026-10-08 18:17:17 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 7.6 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L
Problem Types: CWE-352 | CWE-352 CWE-352: Cross-Site Request Forgery (CSRF)
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 7.6 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L |
| 3.1 | CNA | DECLARED | 7.6 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
LowIntegrity
HighAvailability
LowCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Pydantic | Pydantic-ai | affected >= 1.34.0, < 1.107.4 | Not specified |
| CNA | Pydantic | Pydantic-ai | affected >= 2.0.0b1, < 2.28.0 | Not specified |
| CNA | Pydantic | Pydantic-ai-slim | affected >= 1.34.0, < 1.107.4 | Not specified |
| CNA | Pydantic | Pydantic-ai-slim | affected >= 2.0.0b1, < 2.28.0 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/pydantic/pydantic-ai/commit/dd2abbdfa029c9ad138e7cc0edd2eaeaf... | [email protected] | github.com | |
| github.com/pydantic/pydantic-ai/pull/7383 | [email protected] | github.com | |
| github.com/pydantic/pydantic-ai/releases/tag/v2.28.0 | [email protected] | github.com | |
| github.com/pydantic/pydantic-ai/security/advisories/GHSA-h4xc-3qfq-jf93 | [email protected] | github.com | |
| github.com/pydantic/pydantic-ai/releases/tag/v1.107.4 | [email protected] | github.com | |
| github.com/pydantic/pydantic-ai/commit/d2690201a1834005d382dbf5c47e0ed94... | [email protected] | github.com | |
| github.com/pydantic/pydantic-ai/pull/7382 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.