{"cve":"CVE-2026-107287","nvd":{"published":"2026-10-08T16:17:03.973","modified":"2026-10-14T01:17:04.887","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5},"cwes":["CWE-400","CWE-407"],"references":["https://github.com/pydantic/pydantic-ai/commit/2b247add4950bef61d352e7ca8aefbd20539180c","https://github.com/pydantic/pydantic-ai/commit/2fd38792693da00a3ca5412aeffb436787af3545","https://github.com/pydantic/pydantic-ai/pull/8984","https://github.com/pydantic/pydantic-ai/pull/8985","https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.7"],"products":["pydantic:pydantic_ai"],"source":"nvd","synced_at":"2026-10-19T22:58:01.639778232+00:00"},"epss":{"cve":"CVE-2026-107287","score":0.00277,"percentile":0.19913,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-v36g-jcw9-x7cw","url":"https://osv.dev/vulnerability/GHSA-v36g-jcw9-x7cw","summary":"Pydantic AI: Excessive resource use when local web fetching converts nested HTML","modified":"2026-10-15T14:56:19.955322184Z","packages":[{"ecosystem":"PyPI","name":"pydantic-ai","purl":"pkg:pypi/pydantic-ai","ranges":[">=1.77.0 <1.107.7"],"fixed":["1.107.7"]},{"ecosystem":"PyPI","name":"pydantic-ai","purl":"pkg:pypi/pydantic-ai","ranges":[">=2.0.0b1 <2.52.0"],"fixed":["2.52.0"]},{"ecosystem":"PyPI","name":"pydantic-ai-slim","purl":"pkg:pypi/pydantic-ai-slim","ranges":[">=1.77.0 <1.107.7"],"fixed":["1.107.7"]},{"ecosystem":"PyPI","name":"pydantic-ai-slim","purl":"pkg:pypi/pydantic-ai-slim","ranges":[">=2.0.0b1 <2.52.0"],"fixed":["2.52.0"]}]},{"id":"PYSEC-2026-4281","url":"https://osv.dev/vulnerability/PYSEC-2026-4281","summary":"Pydantic AI: Excessive resource use when local web fetching converts nested HTML","modified":"2026-10-15T14:56:19.955322184Z","packages":[{"ecosystem":"PyPI","name":"pydantic-ai","purl":"pkg:pypi/pydantic-ai","ranges":[">=1.77.0 <1.107.7",">=2.0.0b1 <2.52.0"],"fixed":["1.107.7","2.52.0"]}]},{"id":"PYSEC-2026-4290","url":"https://osv.dev/vulnerability/PYSEC-2026-4290","summary":"Pydantic AI: Excessive resource use when local web fetching converts nested HTML","modified":"2026-10-15T14:56:19.955322184Z","packages":[{"ecosystem":"PyPI","name":"pydantic-ai-slim","purl":"pkg:pypi/pydantic-ai-slim","ranges":[">=1.77.0 <1.107.7",">=2.0.0b1 <2.52.0"],"fixed":["1.107.7","2.52.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}