Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
6.5
CVE-2026-107290: Pydantic AI can stall when processing crafted web pages
CVE-2026-107290 · published 27 days ago
Summary
Versions of Pydantic AI up to 1.107.5 and 2.43.9 may get stuck while extracting titles from a maliciously crafted web page, causing the system to pause other tasks. The problem also appears when the page contains unsupported media types or deeply nested HTML/JSON, which can stop a single run. Upgrade to version 1.107.6 or later, or 2.44.0 or later, to prevent the slowdown and ensure normal operation.
What to do
- Update douwe maan pydantic-ai to version 1.107.6.
- Update douwe maan pydantic-ai to version 2.44.0.
- Update douwe maan pydantic-ai-slim to version 1.107.6.
- Update douwe maan pydantic-ai-slim to version 2.44.0.
- Update pydantic-ai to version 1.107.6.
- Update pydantic-ai to version 2.44.0.
- Update pydantic-ai-slim to version 1.107.6.
- Update pydantic-ai-slim to version 2.44.0.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| pip | douwe maan | pydantic-ai |
>= 1.77.0, < 1.107.6 >= 2.0.0b1, < 2.44.0 Fix: upgrade to 1.107.6
|
| pip | douwe maan | pydantic-ai-slim |
>= 1.77.0, < 1.107.6 >= 2.0.0b1, < 2.44.0 Fix: upgrade to 1.107.6
|
| pip | – | pydantic-ai |
>= 1.77.0, < 1.107.6 >= 2.0.0b1, < 2.44.0 Fix: upgrade to 1.107.6
|
| pip | – | pydantic-ai-slim |
>= 1.77.0, < 1.107.6 >= 2.0.0b1, < 2.44.0 Fix: upgrade to 1.107.6
|
| – | pydantic | pydantic_ai |
>= 1.77.0, < 1.107.6 >= 2.0.0, < 2.44.0 cpe:2.3:a:pydantic:pydantic_ai:*:*:*:*:*:python:*:* |
Original advisory text
Pydantic AI: Event loop blocked by quadratic title extraction in `web_fetch`
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.
References
- https://github.com/pydantic/pydantic-ai/pull/8433 URL
- https://github.com/advisories/GHSA-fpf4-vwcp-v4hp Vendor Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-1072... Vendor Advisory
- https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-fpf4-vwcp-v4hp Vendor Advisory
- https://github.com/pydantic/pydantic-ai Product
- https://pypi.org/project/pydantic-ai-slim Product
- https://pypi.org/project/pydantic-ai Product
- https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.6 URL
- https://github.com/pydantic/pydantic-ai/releases/tag/v2.44.0 URL
- https://nvd.nist.gov/vuln/detail/CVE-2026-107290 Vendor Advisory
- https://github.com/pydantic/pydantic-ai/commit/2faa6181d8a17d83bc9516d035c5270db... Patch
- https://github.com/pydantic/pydantic-ai/commit/9cdc952e4c3319e85a3e04f2de49fbbb7... Patch
- https://github.com/pydantic/pydantic-ai/commit/a93ea5226be1e93ae13131ae3f2228719... Patch
- https://github.com/pydantic/pydantic-ai/commit/c3fd1cc1f15fdbf750d78e4e3ec1e8b4d... Patch
- https://github.com/pydantic/pydantic-ai/commit/fb92ccfc3ca2735dab877e2ed73856681... Patch
- https://github.com/pydantic/pydantic-ai/pull/8397 Patch
- https://github.com/pydantic/pydantic-ai/pull/8399 Patch
- https://github.com/pydantic/pydantic-ai/pull/8418 Patch
- https://github.com/pydantic/pydantic-ai/pull/84332 Patch
- https://github.com/pydantic/pydantic-ai/pull/8434 Patch
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Type
CWE-1333Inefficient Regular Expression Complexity (ReDoS)
CWE-407Inefficient Algorithmic Complexity
Timeline
Published8 Oct 2026
Updated4 Nov 2026
First seen8 Oct 2026
Sources
CVE-2026-107290 · NVD
GHSA-fpf4-vwcp-v4hp · GHSA
CVE-2026-107290 · OSV
GHSA-fpf4-vwcp-v4hp · OSV
PYSEC-2026-4277 · OSV
PYSEC-2026-4286 · OSV
Track software like this
Free during beta