Pydantic AI: Event loop blocked by quadratic title extraction in `web_fetch`
CVE-2026-107290Published 8 Oct 2026, 16:09 UTC
Real-world risk
2.0/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
6.5
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| pydantic-aiNiche | >= 1.77.0, < 1.107.6; >= 2.0.0b1, < 2.44.0 | 1.107.6, 2.44.0 |
| pydantic-ai-slimNiche | >= 1.77.0, < 1.107.6; >= 2.0.0b1, < 2.44.0 | 1.107.6, 2.44.0 |
What to do
Update to a fixed version: 1.107.6, 2.44.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Denial of serviceCrash or resource exhaustion only | From the CVSS vector | 0.40 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 0.60 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.4% chance of exploitation in 30 days (percentile 40), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.600
- Threat T1: Nothing known0.850
- 10 × impact 0.4 × prerequisites 0.6 × threat 0.852.040
- Rounded to one decimal between 0.1 and 102.0
Exploitation and evidence timeline
- 8 Oct 2026 Published
- 3 Dec 2026 Risk 2.0 (cvss fallback)
Weakness
CWE-1333
References
- https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-fpf4-vwcp-v4hpvendor-advisory
- https://github.com/pydantic/pydantic-ai/pull/8397misc
- https://github.com/pydantic/pydantic-ai/pull/8399misc
- https://github.com/pydantic/pydantic-ai/pull/8418misc
- https://github.com/pydantic/pydantic-ai/pull/84332misc
- https://github.com/pydantic/pydantic-ai/pull/8434misc
- https://github.com/pydantic/pydantic-ai/commit/2faa6181d8a17d83bc9516d035c5270db8730fa0misc
- https://github.com/pydantic/pydantic-ai/commit/9cdc952e4c3319e85a3e04f2de49fbbb765bd38bmisc
- https://github.com/pydantic/pydantic-ai/commit/a93ea5226be1e93ae13131ae3f22287190411389misc
- https://github.com/pydantic/pydantic-ai/commit/c3fd1cc1f15fdbf750d78e4e3ec1e8b4d6a3d920misc
- https://github.com/pydantic/pydantic-ai/commit/fb92ccfc3ca2735dab877e2ed73856681bf72ad1misc
- https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.6misc
- https://github.com/pydantic/pydantic-ai/releases/tag/v2.44.0misc
- CVE-2026-107290 on CVE.org