Skip to content
MediumVulnerability

GHSA-v36g-jcw9-x7cw: Pydantic AI: Excessive resource use when local web fetching converts nested HTML

Published
Record updated
View JSON
Affected
  • pydantic-ai-slim >= 2.0.0b1, < 2.52.0, fixed in 2.52.0, released September 29, 2026, 8 days before disclosure
  • pydantic-ai-slim >= 1.77.0, < 1.107.7, fixed in 1.107.7, released September 29, 2026, 8 days before disclosure
  • pydantic-ai >= 2.0.0b1, < 2.52.0, fixed in 2.52.0, released September 29, 2026, 8 days before disclosure
  • and 1 more
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

Applications using Pydantic AI's local web-fetch tool can suffer excessive CPU and memory use when converting attacker-controlled HTML. Nested block elements make the HTML-to-Markdown conversion reprocess accumulated text at each level, greatly expanding the intermediate output. Provider-native web fetching is not affected.

Mitigation

Upgrade to a patched release of `pydantic-ai` or `pydantic-ai-slim`. If you cannot upgrade yet, avoid using local web fetching for attacker-controlled HTML.