{"id":"CVE-2026-107287","revision":"7bc80e1e84de489595d2c32bf71352ac","records":[{"revision":"7bc80e1e84de489595d2c32bf71352ac","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-107287","aliases":[],"title":"Pydantic AI: Excessive resource use when local web fetching converts nested HTML","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.","state":0,"publishedAt":"2026-10-08T15:15:05.417+00:00","modifiedAt":"2026-10-14T00:58:57.237+00:00","affected":[{"ecosystem":"Vendor product","name":"pydantic-ai","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"pydantic\",\n                    \"product\": \"pydantic-ai\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 1.77.0, < 1.107.7\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 2.0.0b1, < 2.52.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"pydantic-ai-slim","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"pydantic\",\n                    \"product\": \"pydantic-ai-slim\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 1.77.0, < 1.107.7\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 2.0.0b1, < 2.52.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 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,"severity":"MEDIUM"}],"references":["https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-v36g-jcw9-x7cw","https://github.com/pydantic/pydantic-ai/pull/8984","https://github.com/pydantic/pydantic-ai/pull/8985","https://github.com/pydantic/pydantic-ai/commit/2b247add4950bef61d352e7ca8aefbd20539180c","https://github.com/pydantic/pydantic-ai/commit/2fd38792693da00a3ca5412aeffb436787af3545","https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.7","https://github.com/pydantic/pydantic-ai/releases/tag/v2.52.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-107287","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-107287","identifiers":["CVE-2026-107287"]},"retained":false,"historicalAffected":[]}],"coverage":[]}