Pydantic AI web_fetch HTML resource exhaustion advisory
Pydantic AI's October 21 advisory describes attacker-influenced HTML delaying shared work or exhausting memory; fixes are available in 2.59.0 and 1.107.9.
What happened lately
Pydantic AI web_fetch HTML resource exhaustion advisory timeline
The advisory covers both pydantic-ai and pydantic-ai-slim when applications use web_fetch_tool on HTML an attacker can influence. Pages with many elements can occupy conversion workers, while very large tags can amplify memory consumption. The documented impact concerns availability, rather than credential theft or remote code execution.
Affected ranges are 1.77.0 through versions below 1.107.9, and 2.0.0 through versions below 2.59.0. Operators should upgrade within their major version line or avoid fetching attacker-controlled HTML until patched. GitHub lists the advisory as High, with a CVSS 3.1 score of 7.5 and no known CVE at review.