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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-400",
"CWE-407"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-107287.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:pydantic:pydantic_ai:*:*:*:*:*:python:*:*",
"range": [
{
"introduced": "1.77.0"
},
{
"fixed": "1.107.7"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:pydantic:pydantic_ai:*:-:*:*:*:python:*:*",
"range": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.52.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "2b247add4950bef61d352e7ca8aefbd20539180c"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "2fd38792693da00a3ca5412aeffb436787af3545"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v1.107.7",
"range": [
{
"fixed": "2fd38792693da00a3ca5412aeffb436787af3545"
}
],
"source": "REFERENCES_TAG"
},
{
"original_tag": "v2.52.0",
"range": [
{
"fixed": "4de1ee3cf6026caa7f58b293ae929a1130b6b388"
}
],
"source": "REFERENCES_TAG"
}
]
}