CVE-2026-142787
Pydantic AI HTML conversion could exceed processing budgets
Pydantic · pydantic-ai, pydantic-ai-slim
First documented disclosure · Review checkpoint
Summary
Denial of service through expensive HTML processing.
Severity and exploitation evidence
High · 7.5/10 · CVSS 3.1. Severity source.
Exploitation not established: The original advisory establishes the weakness and controlled analysis; malicious exploitation or victim compromise is not established.
Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.
How the weakness works
Large tags or many HTML elements can consume excessive CPU and memory during conversion despite a download cap.
Conditions required
A caller can steer local web fetch to attacker-controlled HTML.
Potential impact
Denial of service through expensive HTML processing.
Affected versions and configurations
pydantic-ai: >=1.77.0, <1.107.9; pydantic-ai: >=2.0.0, <2.59.0; pydantic-ai-slim: >=1.77.0, <1.107.9; pydantic-ai-slim: >=2.0.0, <2.59.0
Fix and mitigation status
pydantic-ai: 1.107.9; pydantic-ai: 2.59.0; pydantic-ai-slim: 1.107.9; pydantic-ai-slim: 2.59.0
Practical next steps
Upgrade and enforce resource limits around remote-content conversion.
Operating lesson
Apply confidentiality, resource and authority checks at the final representation that crosses the trust boundary.
Evidence and limits
The original GHSA publication predates its December 3 CVE identity update. The current published GHSA explicitly supplies the CVE. Fresh CVE Program raw and API lookups returned no record; this does not establish RESERVED status or a CVE publication date. The report distinguishes earlier event-loop work from worker-pool conversion; a worker pool does not impose a CPU or memory budget. CVSS 3.1 7.5 is the maintainer advisory assessment.
Sources
- Original Pydantic maintainer advisory
Primary source ·