What’s Vulnerable › Vulnerabilities

CVE-2026-107290: Pydantic AI: Event loop blocked by quadratic title extraction in `web_fetch`

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

How to fix

Upgrade to a fixed version: pydantic-ai 1.107.6, 2.44.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-107290 or the next vulnerability affects your stack