CVE-2026-107295: `pydantic-ai-slim` web UI `/api/chat` accepts browser-simple cross-origin requests that can trigger agent tool execution
Vulnerability summary
CVE-2026-107295 is a high (CVSS 7.6) Cross-Site Request Forgery vulnerability in pydantic pydantic_ai. EPSS estimates a 0.16% chance of exploitation in the next 30 days, higher than 4.9% of scored vulnerabilities.
Not severe (CVSS 7.6, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 08-10-2026PublishedVulnerability first disclosed.
- 08-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · PypiEcosystem advisory · calculated7.6HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L
- NVDNIST7.6HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L
EPSS trend
Probability
0.16%
Chance of exploitation in the next 30 days
Percentile
5%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Pydantic3 products
- pydantic_ai≥ 1.34.0, < 1.107.4 | ≥ 2.0.0, < 2.28.0
- pydantic-ai≥ 1.34.0, < 1.107.4 | ≥ 2.0.0b1, < 2.28.0
- pydantic-ai-slim≥ 1.34.0, < 1.107.4 | ≥ 2.0.0b1, < 2.28.0
PyPI2 products
- pydantic-ai≥ 1.34.0, < 1.107.4 | ≥ 2.0.0b1, < 2.28.0
- pydantic-ai-slim≥ 1.34.0, < 1.107.4 | ≥ 2.0.0b1, < 2.28.0
2 vendors · 5 products
References
12 links- github.com/pydantic/pydantic-ai/security/advisories/GHSA-h4xc-3qfq-jf93X Refsource CONFIRMWEBMitigationVendor Advisory
- github.com/pydantic/pydantic-ai/commit/d2690201a1834005d382dbf5c47e0ed94ef8bf46X Refsource MISCWEBPatch
- github.com/pydantic/pydantic-ai/commit/dd2abbdfa029c9ad138e7cc0edd2eaeaf9ed69c0X Refsource MISCWEBPatch
- pypi.org/project/pydantic-aiPACKAGE