{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-107287","id":"CVE-2026-107287","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 great","descriptionLong":"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.","published":"2026-10-08T15:15:05.417Z","updated":"2026-10-28T02:31:13.648538530Z","reserved":"2026-10-07T15:53:23.586Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","rating":"medium","source":"github.com"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub"}],"rating":"medium","products":["pydantic-ai","pydantic-ai-slim"],"affectedProducts":[{"vendor":"pydantic","product":"pydantic-ai","defaultStatus":null,"versions":[{"version":">= 1.77.0, < 1.107.7","status":"affected"},{"version":">= 2.0.0b1, < 2.52.0","status":"affected"}],"platforms":[]},{"vendor":"pydantic","product":"pydantic-ai-slim","defaultStatus":null,"versions":[{"version":">= 1.77.0, < 1.107.7","status":"affected"},{"version":">= 2.0.0b1, < 2.52.0","status":"affected"}],"platforms":[]}],"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"],"advisory":"GHSA-v36g-jcw9-x7cw"},{"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"],"advisory":"GHSA-v36g-jcw9-x7cw"}],"cwes":["CWE-400","CWE-407"],"aliases":["GHSA-v36g-jcw9-x7cw","PYSEC-2026-4281","PYSEC-2026-4290"],"references":[{"url":"https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-v36g-jcw9-x7cw","tags":["x_refsource_CONFIRM","Vendor Advisory","advisory","web"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/8984","tags":["x_refsource_MISC","Patch","Vendor Advisory","fix","web"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/8985","tags":["x_refsource_MISC","Patch","Vendor Advisory","fix","web"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/2b247add4950bef61d352e7ca8aefbd20539180c","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/2fd38792693da00a3ca5412aeffb436787af3545","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.7","tags":["x_refsource_MISC","Patch","Release Notes","Vendor Advisory","web"]},{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v2.52.0","tags":["x_refsource_MISC","Patch","Release Notes","Vendor Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-107287.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107287","tags":["advisory"]},{"url":"https://github.com/pydantic/pydantic-ai","tags":["package"]},{"url":"https://pypi.org/project/pydantic-ai","tags":["package"]},{"url":"https://github.com/advisories/GHSA-v36g-jcw9-x7cw","tags":["advisory"]},{"url":"https://pypi.org/project/pydantic-ai-slim","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00277,"epssPercentile":0.20582,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-107287","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107287","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-107287","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-v36g-jcw9-x7cw","ok":true,"note":"GHSA-v36g-jcw9-x7cw"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-107287","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}