GHSA-fpf4-vwcp-v4hp: Pydantic AI: Event loop blocked by quadratic title extraction in `web_fetch`
- Identifiers
- CVE-2026-107290GHSA-fpf4-vwcp-v4hp
- Published
- Record updated
- Affected
- pydantic-ai-slim >= 2.0.0b1, < 2.44.0, fixed in 2.44.0, released September 17, 2026, 21 days before disclosure
- pydantic-ai-slim >= 1.77.0, < 1.107.6, fixed in 1.107.6, released September 17, 2026, 21 days before disclosure
- pydantic-ai >= 2.0.0b1, < 2.44.0, fixed in 2.44.0, released September 17, 2026, 21 days before disclosure
- and 1 more
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.5%
Summary
Pydantic AI's local web-fetch tool (`web_fetch_tool`, also the local fallback for the `WebFetch` capability) runs response decoding, title extraction and HTML-to-markdown conversion on the event loop, where several steps take time that grows quadratically with server-controlled input. An attacker who can steer the agent through untrusted prompts can make it fetch a page of one to two megabytes that blocks the event loop for minutes, stalling other agent runs and requests in the process. The fix is in the upgrade listed below.
Mitigation
Upgrade to a patched version. The title is now found with a single linear scan, the conversion steps run in linear time, and decoding, title extraction and conversion all run in a worker thread. A charset naming a codec that isn't a text encoding, and a page too deeply nested to convert, are reported back to the model as a failed fetch instead of aborting the run; a JSON body too deeply nested to parse is returned as plain text.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- pydantic-aiPyPILLM dependency since 2024-05-20 · 4 tracked dependents
- pydantic-ai-slimPyPILLM dependency since 2024-11-25 · 8 tracked dependents
Related items
- MediumCVE-2026-54038: LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.9, GET…Similar attack · NVD/CVE Database
- MediumCVE-2026-54045: LibreChat password reset request deletes pending email verification tokensSimilar attack · NVD/CVE Database
- MediumCVE-2026-114499: codebase-memory-mcp gitignore matcher exponential backtracking stalls indexingSimilar attack · NVD/CVE Database
- MediumCVE-2026-114497: codebase-memory-mcp provides local code intelligence for developers and AI agents through a persistent graph and MCP…Similar attack · NVD/CVE Database
- HighCVE-2026-114494: codebase-memory-mcp query_graph stack overflow via oversized Cypher RETURNSimilar attack · NVD/CVE Database