Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-107290 EUVD-2026-95093GHSA-fpf4-vwcp-v4hpPYSEC-2026-4277PYSEC-2026-4286

Pydantic AI: Event loop blocked by quadratic title extraction in `web_fetch`

Published Oct 8, 2026 · Updated Oct 9, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
pydantic pydantic-ai >= 1.77.0, < 1.107.6, >= 2.0.0b1, < 2.44.0 —
pydantic pydantic-ai-slim >= 1.77.0, < 1.107.6, >= 2.0.0b1, < 2.44.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pydantic-ai >= 1.77.0, < 1.107.6 1.107.6 GHSA-fpf4-vwcp-v4hp
PyPI pydantic-ai >= 2.0.0b1, < 2.44.0 2.44.0 GHSA-fpf4-vwcp-v4hp
PyPI pydantic-ai >= 1.77.0, < 1.107.6 · >= 2.0.0b1, < 2.44.0 1.107.6, 2.44.0 PYSEC-2026-4277
PyPI pydantic-ai-slim >= 1.77.0, < 1.107.6 1.107.6 GHSA-fpf4-vwcp-v4hp
PyPI pydantic-ai-slim >= 2.0.0b1, < 2.44.0 2.44.0 GHSA-fpf4-vwcp-v4hp
PyPI pydantic-ai-slim >= 1.77.0, < 1.107.6 · >= 2.0.0b1, < 2.44.0 1.107.6, 2.44.0 PYSEC-2026-4286

References