CVE-2026-107287
pydantic-ai: pydantic-ai: Denial of Service via resource exhaustion during HTML conversion
Overview
Description
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.
Source: OX vulnerability database
Severity
6.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness: CWE-400, CWE-407
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | pydantic-ai | >=1.77.0, <1.107.7>=2.0.0b1, <2.52.0 | 1.107.72.52.0 |
| PyPI | pydantic-ai-slim | >=1.77.0, <1.107.7>=2.0.0b1, <2.52.0 | 1.107.72.52.0 |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-107287
- github.com https://github.com/pydantic/pydantic-ai
- github.com https://github.com/pydantic/pydantic-ai/commit/2b247add4950bef61d352e7ca8aefbd20539180c
- github.com https://github.com/pydantic/pydantic-ai/commit/2fd38792693da00a3ca5412aeffb436787af3545
- github.com https://github.com/pydantic/pydantic-ai/pull/8984
- github.com https://github.com/pydantic/pydantic-ai/pull/8985
- github.com https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.7
- github.com https://github.com/pydantic/pydantic-ai/releases/tag/v2.52.0
- github.com https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-v36g-jcw9-x7cw
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-107287
Show all 11 references
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.