# CVE-2026-107287: Pydantic AI: Excessive resource use when local web fetching converts nested HTML

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-10-08T15:15:05.417Z
- Modified: 2026-10-15T14:56:19.955Z
- Also known as: GHSA-v36g-jcw9-x7cw, PYSEC-2026-4281, PYSEC-2026-4290
- Weaknesses: CWE-400, CWE-407
- 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.7 and 2.52.0, the local web_fetch_tool and the WebFetch local fallback can consume excessive CPU and memory during HTML-to-Markdown conversion of attacker-controlled HTML containing deeply nested block elements. Conversion repeatedly reprocesses accumulated text and can greatly expand intermediate output before the returned-content limit is applied, allowing a model-directed fetch to delay other work in the process. Provider-native web fetching is not affected. This issue is fixed in versions 1.107.7 and 2.52.0.

(As written by CVE List.)

## Affected

- pydantic pydantic-ai: >= 1.77.0, < 1.107.7; >= 2.0.0b1, < 2.52.0
- pydantic pydantic-ai-slim: >= 1.77.0, < 1.107.7; >= 2.0.0b1, < 2.52.0
- pydantic-ai (PyPI): from 1.77.0 before 1.107.7; from 2.0.0b1 before 2.52.0
- pydantic-ai-slim (PyPI): from 1.77.0 before 1.107.7; from 2.0.0b1 before 2.52.0
- pydantic pydantic_ai: from 1.77.0 before 1.107.7; from 2.0.0 before 2.52.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-v36g-jcw9-x7cw> (vendor-advisory, web)
- <https://github.com/pydantic/pydantic-ai/pull/8984> (patch, vendor-advisory, web)
- <https://github.com/pydantic/pydantic-ai/pull/8985> (patch, vendor-advisory, web)
- <https://github.com/pydantic/pydantic-ai/commit/2b247add4950bef61d352e7ca8aefbd20539180c> (patch, web)
- <https://github.com/pydantic/pydantic-ai/commit/2fd38792693da00a3ca5412aeffb436787af3545> (patch, web)
- <https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.7> (patch, release-notes, vendor-advisory, web)
- <https://github.com/pydantic/pydantic-ai/releases/tag/v2.52.0> (patch, release-notes, vendor-advisory, web)
- <https://github.com/pydantic/pydantic-ai> (package)
- <https://pypi.org/project/pydantic-ai> (package)
- <https://github.com/advisories/GHSA-v36g-jcw9-x7cw> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-107287> (advisory)
- <https://pypi.org/project/pydantic-ai-slim> (package)

## Sources

- CVE List: [CVE-2026-107287](https://www.cve.org/CVERecord?id=CVE-2026-107287), CVE Terms of Use, modified 2026-10-14
- GitHub Advisory Database: [GHSA-v36g-jcw9-x7cw](https://github.com/advisories/GHSA-v36g-jcw9-x7cw), CC-BY-4.0, modified 2026-10-15
- NVD: [CVE-2026-107287](https://nvd.nist.gov/vuln/detail/CVE-2026-107287), Public domain, modified 2026-10-14
- PyPA Advisory Database: [PYSEC-2026-4281](https://osv.dev/vulnerability/PYSEC-2026-4281), CC-BY-4.0, modified 2026-10-15
- PyPA Advisory Database: [PYSEC-2026-4290](https://osv.dev/vulnerability/PYSEC-2026-4290), CC-BY-4.0, modified 2026-10-15

---

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