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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-08T16:09:04.272Z
- Modified: 2026-10-15T14:56:08.216Z
- Also known as: GHSA-fpf4-vwcp-v4hp, PYSEC-2026-4277, PYSEC-2026-4286
- Weaknesses: CWE-407, CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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
- pydantic-ai (PyPI): from 1.77.0 before 1.107.6; from 2.0.0b1 before 2.44.0
- pydantic-ai-slim (PyPI): from 1.77.0 before 1.107.6; from 2.0.0b1 before 2.44.0
- pydantic pydantic_ai: from 1.77.0 before 1.107.6; from 2.0.0 before 2.44.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/pydantic/pydantic-ai/commit/c3fd1cc1f15fdbf750d78e4e3ec1e8b4d6a3d920> (exploit, patch, web)
- <https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-fpf4-vwcp-v4hp> (vendor-advisory, web)
- <https://github.com/pydantic/pydantic-ai/pull/8397> (patch, vendor-advisory, web)
- <https://github.com/pydantic/pydantic-ai/pull/8399> (patch, vendor-advisory, web)
- <https://github.com/pydantic/pydantic-ai/pull/8418> (patch, vendor-advisory, web)
- <https://github.com/pydantic/pydantic-ai/pull/84332> (broken-link)
- <https://github.com/pydantic/pydantic-ai/pull/8434> (patch, vendor-advisory, web)
- <https://github.com/pydantic/pydantic-ai/commit/2faa6181d8a17d83bc9516d035c5270db8730fa0> (patch, web)
- <https://github.com/pydantic/pydantic-ai/commit/9cdc952e4c3319e85a3e04f2de49fbbb765bd38b> (patch, web)
- <https://github.com/pydantic/pydantic-ai/commit/a93ea5226be1e93ae13131ae3f22287190411389> (patch, web)
- <https://github.com/pydantic/pydantic-ai/commit/fb92ccfc3ca2735dab877e2ed73856681bf72ad1> (patch, web)
- <https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.6> (patch, release-notes, vendor-advisory, web)
- <https://github.com/pydantic/pydantic-ai/releases/tag/v2.44.0> (patch, release-notes, vendor-advisory, web)
- <https://github.com/pydantic/pydantic-ai/pull/8433> (web)
- <https://github.com/pydantic/pydantic-ai> (package)
- <https://pypi.org/project/pydantic-ai> (package)
- <https://github.com/advisories/GHSA-fpf4-vwcp-v4hp> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-107290> (advisory)
- <https://pypi.org/project/pydantic-ai-slim> (package)

## Sources

- CVE List: [CVE-2026-107290](https://www.cve.org/CVERecord?id=CVE-2026-107290), CVE Terms of Use, modified 2026-10-09
- GitHub Advisory Database: [GHSA-fpf4-vwcp-v4hp](https://github.com/advisories/GHSA-fpf4-vwcp-v4hp), CC-BY-4.0, modified 2026-10-15
- NVD: [CVE-2026-107290](https://nvd.nist.gov/vuln/detail/CVE-2026-107290), Public domain, modified 2026-10-13
- PyPA Advisory Database: [PYSEC-2026-4277](https://osv.dev/vulnerability/PYSEC-2026-4277), CC-BY-4.0, modified 2026-10-15
- PyPA Advisory Database: [PYSEC-2026-4286](https://osv.dev/vulnerability/PYSEC-2026-4286), CC-BY-4.0, modified 2026-10-15

---

Page: https://cve.day/CVE-2026-107290 · Whole record: https://cve.day/CVE-2026-107290.json · Rebuilt by cve.day 2026-11-25T22:59:43.186Z
