Pydantic AI: Event loop blocked by quadratic title extraction in web_fetch
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-1333.
Summary
Pydantic AI, a Python agent framework for Generative AI applications, has quadratic-time title extraction, whitespace normalization and ordered-list numbering in the local web_fetch_tool and the WebFetch local fallback. From 1.77.0 before 1.107.6, and from 2.0.0b1 before 2.44.0, an attacker-controlled page of modest size can block the event loop for an extended period, stalling other agent runs and requests. Unsupported codecs or excessive HTML or JSON nesting can abort an individual run. CVSS 3.1 scores this 6.5 (MEDIUM), with CWE-1333 and CWE-407.
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.77.0 until 1.107.6 and 2.44.0, the local web_fetch_tool and the WebFetch local fallback process server-controlled responses with quadratic title extraction, whitespace normalization, and ordered-list numbering. An attacker-controlled page of modest size can therefore block the event loop for an extended period, stalling other agent runs and requests, while unsupported codecs or excessive HTML or JSON nesting can abort an individual run. This issue is fixed in versions 1.107.6 and 2.44.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.77.0 to before 1.107.6; 2.0.0b1 to before 2.44.0 | 1.107.6, 2.44.0 | Patch available | CNA |
| pydantic | pydantic-ai-slim | 1.77.0 to before 1.107.6; 2.0.0b1 to before 2.44.0 | 1.107.6, 2.44.0 | Patch available | CNA |
| — | pydantic-ai (PyPI) | 1.77.0 to before 1.107.6 | 1.107.6 | Patch available | GHSA-fpf4-vwcp-v4hp |
| — | pydantic-ai (PyPI) | 2.0.0b1 to before 2.44.0 | 2.44.0 | Patch available | GHSA-fpf4-vwcp-v4hp |
| — | pydantic-ai-slim (PyPI) | 1.77.0 to before 1.107.6 | 1.107.6 | Patch available | GHSA-fpf4-vwcp-v4hp |
| — | pydantic-ai-slim (PyPI) | 2.0.0b1 to before 2.44.0 | 2.44.0 | Patch available | GHSA-fpf4-vwcp-v4hp |
- pydantic-ai Vendorpydantic Affected 1.77.0 to before 1.107.6; 2.0.0b1 to before 2.44.0 Fixed in 1.107.6, 2.44.0 Patch available CNA
- pydantic-ai-slim Vendorpydantic Affected 1.77.0 to before 1.107.6; 2.0.0b1 to before 2.44.0 Fixed in 1.107.6, 2.44.0 Patch available CNA
- pydantic-ai (PyPI) Vendor— Affected 1.77.0 to before 1.107.6 Fixed in 1.107.6 Patch available GHSA-fpf4-vwcp-v4hp
- pydantic-ai (PyPI) Vendor— Affected 2.0.0b1 to before 2.44.0 Fixed in 2.44.0 Patch available GHSA-fpf4-vwcp-v4hp
- pydantic-ai-slim (PyPI) Vendor— Affected 1.77.0 to before 1.107.6 Fixed in 1.107.6 Patch available GHSA-fpf4-vwcp-v4hp
- pydantic-ai-slim (PyPI) Vendor— Affected 2.0.0b1 to before 2.44.0 Fixed in 2.44.0 Patch available GHSA-fpf4-vwcp-v4hp
Remediation
Upgrade pydantic-ai and pydantic-ai-slim to 1.107.6 or 2.44.0. Red Hat rates this Moderate; Lightspeed Core and RHEL AI 3 have no fix available yet.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
- Fix · CNA pydantic-ai (pydantic) Fixed in 1.107.6, 2.44.0
- Fix · CNA pydantic-ai-slim (pydantic) Fixed in 1.107.6, 2.44.0
- Fix · GHSA-fpf4-vwcp-v4hp pydantic-ai (PyPI) Fixed in 1.107.6 Advisory →
- Fix · GHSA-fpf4-vwcp-v4hp pydantic-ai (PyPI) Fixed in 2.44.0 Advisory →
- Fix · GHSA-fpf4-vwcp-v4hp pydantic-ai-slim (PyPI) Fixed in 1.107.6 Advisory →
- Fix · GHSA-fpf4-vwcp-v4hp pydantic-ai-slim (PyPI) Fixed in 2.44.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Lightspeed Core | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux AI (RHEL AI) 3 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-08 Threatist record created from CVE-2026-107290
- 2026-10-08 Alias added: GHSA-fpf4-vwcp-v4hp
- 2026-10-09 Affected versions changed · Red Hat
- 2026-10-09 CVSS score added · Red Hat
- 2026-10-10 CISA SSVC decision points changed
- 2026-10-10 Priority changed: MEDIUM → LOW
References
Patch 10
- https://github.com/pydantic/pydantic-ai/pull/8397
- https://github.com/pydantic/pydantic-ai/pull/8399
- https://github.com/pydantic/pydantic-ai/pull/8418
- https://github.com/pydantic/pydantic-ai/pull/8434
- https://github.com/pydantic/pydantic-ai/commit/2faa6181d8a17d83bc9516d035c5270db8730fa0
- https://github.com/pydantic/pydantic-ai/commit/9cdc952e4c3319e85a3e04f2de49fbbb765bd38b
- https://github.com/pydantic/pydantic-ai/commit/a93ea5226be1e93ae13131ae3f22287190411389
- https://github.com/pydantic/pydantic-ai/commit/fb92ccfc3ca2735dab877e2ed73856681bf72ad1
- https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.6
- https://github.com/pydantic/pydantic-ai/releases/tag/v2.44.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-69610 Cross-site requests run agent tools in pydantic-ai web chat CVSS 3.1HIGH 7.6
- 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
Sources
- CVE-2026-107290 · CVE Program
- CVE-2026-107290 · NVD
- FIRST EPSS
- GHSA-fpf4-vwcp-v4hp · GitHub Advisory Database · CC BY 4.0
- CVE-2026-107290 · 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