Cross-site requests run agent tools in pydantic-ai web chat
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Tampering, Security bypass
- Confidentiality · integrity · availability
- Low · High · Low
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-352 and CWE-346.
Summary
The pydantic-ai and pydantic-ai-slim packages from 1.34.0 before 1.107.4 and from 2.0.0b1 before 2.28.0 lack request content-type validation on the Agent.to_web() chat endpoint (CWE-352). A visited website can send a cross-origin request to the local chat server, which runs the agent and its tools with the local process credentials. Tools marked requires_approval=True stay exposed through client-relayed approvals.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| pydantic | pydantic-ai | 1.34.0 to before 1.107.4; 2.0.0b1 to before 2.28.0 | 1.107.4, 2.28.0 | Patch available | CNA |
| pydantic | pydantic-ai-slim | 1.34.0 to before 1.107.4; 2.0.0b1 to before 2.28.0 | 1.107.4, 2.28.0 | Patch available | CNA |
| — | pydantic-ai (PyPI) | 1.34.0 to before 1.107.4 | 1.107.4 | Patch available | GHSA-h4xc-3qfq-jf93 |
| — | pydantic-ai (PyPI) | 2.0.0b1 to before 2.28.0 | 2.28.0 | Patch available | GHSA-h4xc-3qfq-jf93 |
| — | pydantic-ai-slim (PyPI) | 1.34.0 to before 1.107.4 | 1.107.4 | Patch available | GHSA-h4xc-3qfq-jf93 |
| — | pydantic-ai-slim (PyPI) | 2.0.0b1 to before 2.28.0 | 2.28.0 | Patch available | GHSA-h4xc-3qfq-jf93 |
- pydantic-ai Vendorpydantic Affected 1.34.0 to before 1.107.4; 2.0.0b1 to before 2.28.0 Fixed in 1.107.4, 2.28.0 Patch available CNA
- pydantic-ai-slim Vendorpydantic Affected 1.34.0 to before 1.107.4; 2.0.0b1 to before 2.28.0 Fixed in 1.107.4, 2.28.0 Patch available CNA
- pydantic-ai (PyPI) Vendor— Affected 1.34.0 to before 1.107.4 Fixed in 1.107.4 Patch available GHSA-h4xc-3qfq-jf93
- pydantic-ai (PyPI) Vendor— Affected 2.0.0b1 to before 2.28.0 Fixed in 2.28.0 Patch available GHSA-h4xc-3qfq-jf93
- pydantic-ai-slim (PyPI) Vendor— Affected 1.34.0 to before 1.107.4 Fixed in 1.107.4 Patch available GHSA-h4xc-3qfq-jf93
- pydantic-ai-slim (PyPI) Vendor— Affected 2.0.0b1 to before 2.28.0 Fixed in 2.28.0 Patch available GHSA-h4xc-3qfq-jf93
Remediation
Upgrade pydantic-ai and pydantic-ai-slim to 1.107.4 in the 1.x line or to 2.28.0 in the 2.x line. Red Hat lists Lightspeed Core as affected with no fix available.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
- Fix · CNA pydantic-ai (pydantic) Fixed in 1.107.4, 2.28.0
- Fix · CNA pydantic-ai-slim (pydantic) Fixed in 1.107.4, 2.28.0
- Fix · GHSA-h4xc-3qfq-jf93 pydantic-ai (PyPI) Fixed in 1.107.4 Advisory →
- Fix · GHSA-h4xc-3qfq-jf93 pydantic-ai (PyPI) Fixed in 2.28.0 Advisory →
- Fix · GHSA-h4xc-3qfq-jf93 pydantic-ai-slim (PyPI) Fixed in 1.107.4 Advisory →
- Fix · GHSA-h4xc-3qfq-jf93 pydantic-ai-slim (PyPI) Fixed in 2.28.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Lightspeed Core | Affected | No fix yet |
Timeline
- 2026-10-08 Threatist record created from CVE-2026-107295
- 2026-10-08 Alias added: GHSA-h4xc-3qfq-jf93
- 2026-10-09 Affected versions changed · Red Hat
- 2026-10-09 CVSS score added · Red Hat
References
Patch 6
- https://github.com/pydantic/pydantic-ai/pull/7382
- https://github.com/pydantic/pydantic-ai/pull/7383
- https://github.com/pydantic/pydantic-ai/commit/d2690201a1834005d382dbf5c47e0ed94ef8bf46
- https://github.com/pydantic/pydantic-ai/commit/dd2abbdfa029c9ad138e7cc0edd2eaeaf9ed69c0
- https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.4
- https://github.com/pydantic/pydantic-ai/releases/tag/v2.28.0
More Pydantic Ai vulnerabilities
- TI-2026-20687 Pydantic AI Affected by Server-Side Request Forgery (SSRF) in URL Download Handling CVSS 3.1HIGH 8.6
- TI-2026-69551 Pydantic AI keeps concurrency slots after streams end early CVSS 3.1HIGH 7.5
- TI-2026-46990 Incorrect authorization in pydantic-ai CVSS 3.1MEDIUM 6.5
- TI-2026-20740 Pydantic AI affected by Stored XSS via Path Traversal in Web UI CDN URL CVSS 3.1HIGH 7.1
- TI-2026-69617 Pydantic AI blocklist bypass via IPv6 zone identifier allows SSRF CVSS 3.1MEDIUM 6.8
- TI-2026-39151 Server-side request forgery in pydantic-ai CVSS 3.1MEDIUM 6.8
Sources
- CVE-2026-107295 · CVE Program
- CVE-2026-107295 · NVD
- FIRST EPSS
- GHSA-h4xc-3qfq-jf93 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-107295 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences