{"id":"CVE-2026-107290","published":"2026-10-08T16:09:04Z","modified":"2026-10-09T15:15:26Z","title":"Pydantic AI: Event loop blocked by quadratic title extraction in `web_fetch`","vendor":"pydantic","product":"pydantic-ai","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00803,"percentile":0.53484,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-fpf4-vwcp-v4hp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/8397","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/8399","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/8418","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/84332","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/8434","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/2faa6181d8a17d83bc9516d035c5270db8730fa0","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/9cdc952e4c3319e85a3e04f2de49fbbb765bd38b","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/a93ea5226be1e93ae13131ae3f22287190411389","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/c3fd1cc1f15fdbf750d78e4e3ec1e8b4d6a3d920","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/fb92ccfc3ca2735dab877e2ed73856681bf72ad1","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.6","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v2.44.0","tags":["x_refsource_MISC"]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":10.7},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"pydantic","affectedVersions":[{"vendor":"pydantic","product":"pydantic-ai","versions":[">= 1.77.0, < 1.107.6",">= 2.0.0b1, < 2.44.0"]},{"vendor":"pydantic","product":"pydantic-ai-slim","versions":[">= 1.77.0, < 1.107.6",">= 2.0.0b1, < 2.44.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-08T20:23:20.403829Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pydantic-ai","vulnerableRanges":[">=1.77.0, <1.107.6",">=2.0.0b1, <2.44.0"],"patched":["1.107.6","2.44.0"],"from":["GHSA-fpf4-vwcp-v4hp","PYSEC-2026-4277"],"provenance":"source"},{"ecosystem":"PyPI","package":"pydantic-ai-slim","vulnerableRanges":[">=1.77.0, <1.107.6",">=2.0.0b1, <2.44.0"],"patched":["1.107.6","2.44.0"],"from":["GHSA-fpf4-vwcp-v4hp","PYSEC-2026-4286"],"provenance":"source"}],"summary":{"text":"Pydantic AI (the pydantic-ai Python agent framework) contains an inefficient-complexity flaw in its local web_fetch_tool and WebFetch local fallback, which process server-controlled responses using quadratic title extraction, whitespace normalization, and ordered-list numbering. An attacker who can get the agent to fetch a crafted page, requiring only low-privilege access and no user interaction over the network, can block the event loop and stall other agent runs and requests, and unsupported codecs or excessive HTML or JSON nesting can also abort an individual run.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:01Z"},"euvd":{"id":"EUVD-2026-95093","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pydantic-ai-cve-2026-25580","parents":[{"from":"CVE-2026-107287","to":"CVE-2026-107290","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pydantic_ai_slim/pydantic_ai/common_tools/web_fetch.py"],"commits":["https://github.com/pydantic/pydantic-ai/commit/2b247add4950bef61d352e7ca8aefbd20539180c","https://github.com/pydantic/pydantic-ai/commit/2fd38792693da00a3ca5412aeffb436787af3545","https://github.com/pydantic/pydantic-ai/commit/2faa6181d8a17d83bc9516d035c5270db8730fa0","https://github.com/pydantic/pydantic-ai/commit/9cdc952e4c3319e85a3e04f2de49fbbb765bd38b"],"basis":"shared function","functions":["__call__"]}]}],"children":[{"from":"CVE-2026-107290","to":"CVE-2026-107294","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pydantic_ai_slim/pydantic_ai/common_tools/web_fetch.py"],"commits":["https://github.com/pydantic/pydantic-ai/commit/2faa6181d8a17d83bc9516d035c5270db8730fa0","https://github.com/pydantic/pydantic-ai/commit/9cdc952e4c3319e85a3e04f2de49fbbb765bd38b","https://github.com/pydantic/pydantic-ai/commit/7a64d049c3f5271a975cd1d64b2fa876d83ede1d","https://github.com/pydantic/pydantic-ai/commit/e3824a58c82864ed26afb2887619834a4eb86cc8"],"basis":"shared function","functions":["__call__"]}]}],"packageHistory":[{"cve":"CVE-2026-107295","published":"2026-10-08","fixed":"2.28.0","kev":false},{"cve":"CVE-2026-107292","published":"2026-10-08","fixed":"2.30.0","kev":false,"link":{"from":"CVE-2026-107292","to":"CVE-2026-107290","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai","fromFixed":"1.107.5","toFixed":"1.107.6","daysApart":0},{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai","fromFixed":"2.30.0","toFixed":"2.44.0","daysApart":0}]}},{"cve":"CVE-2026-107289","published":"2026-10-08","fixed":"2.44.0","kev":false},{"cve":"CVE-2026-107290","published":"2026-10-08","fixed":"2.44.0","kev":false},{"cve":"CVE-2026-107291","published":"2026-10-08","fixed":"2.44.0","kev":false},{"cve":"CVE-2026-107287","published":"2026-10-08","fixed":"2.52.0","kev":false},{"cve":"CVE-2026-107286","published":"2026-10-08","fixed":"2.53.0","kev":false}],"package":"PyPI:pydantic-ai"}}