Pydantic AI: Excessive resource use when local web fetching converts nested HTML
CVE-2026-107287Published 8 Oct 2026, 15:15 UTC
Real-world risk
2.4/ 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.7 and 2.52.0, the local web_fetch_tool and the WebFetch local fallback can consume excessive CPU and memory during HTML-to-Markdown conversion of attacker-controlled HTML containing deeply nested block elements. Conversion repeatedly reprocesses accumulated text and can greatly expand intermediate output before the returned-content limit is applied, allowing a model-directed fetch to delay other work in the process. Provider-native web fetching is not affected. This issue is fixed in versions 1.107.7 and 2.52.0.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| pydantic-aiNiche | >= 1.77.0, < 1.107.7; >= 2.0.0b1, < 2.52.0 | 1.107.7, 2.52.0 |
| pydantic-ai-slimNiche | >= 1.77.0, < 1.107.7; >= 2.0.0b1, < 2.52.0 | 1.107.7, 2.52.0 |
What to do
Update to a fixed version: 1.107.7, 2.52.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 | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| 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.3% chance of exploitation in 30 days (percentile 22), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.700
- Threat T1: Nothing known0.850
- 10 × impact 0.4 × prerequisites 0.7 × threat 0.852.380
- Rounded to one decimal between 0.1 and 102.4
Exploitation and evidence timeline
- 8 Oct 2026 Published
- 3 Dec 2026 Risk 2.4 (cvss fallback)
Weakness
CWE-400, CWE-407
References
- https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-v36g-jcw9-x7cwvendor-advisory
- https://github.com/pydantic/pydantic-ai/pull/8984misc
- https://github.com/pydantic/pydantic-ai/pull/8985misc
- https://github.com/pydantic/pydantic-ai/commit/2b247add4950bef61d352e7ca8aefbd20539180cmisc
- https://github.com/pydantic/pydantic-ai/commit/2fd38792693da00a3ca5412aeffb436787af3545misc
- https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.7misc
- https://github.com/pydantic/pydantic-ai/releases/tag/v2.52.0misc
- CVE-2026-107287 on CVE.org