Loading advisory.
Loading advisory.
Pydantic AI: Excessive resource use when local web fetching converts nested HTML
Applications using Pydantic AI's local web-fetch tool can experience excessive CPU and memory use when it converts attacker-controlled HTML. An agent must fetch the affected page; provider-native web fetching is not affected.
Published 2026-10-08 15:15 UTC · Modified 2026-10-15 14:56 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| pydantic-ai | PyPI | >= 1.77.0, < 1.107.7 >= 2.0.0b1, < 2.52.0 versions 1.100.0, 1.101.0, 1.102.0, 1.103.0, 1.104.0, 1.105.0, 1.106.0, 1.107.0, 1.107.1, 1.107.2, 1.107.4, 1.107.5, 1.107.6, 1.77.0, 1.78.0, 1.79.0, 1.80.0, 1.81.0, 1.82.0, 1.83.0 and 90 more | 1.107.7, 2.52.0 | pip install --upgrade 'pydantic-ai>=1.107.7'pip install --upgrade 'pydantic-ai>=2.52.0' |
| pydantic-ai-slim | PyPI | >= 1.77.0, < 1.107.7 >= 2.0.0b1, < 2.52.0 versions 1.100.0, 1.101.0, 1.102.0, 1.103.0, 1.104.0, 1.105.0, 1.106.0, 1.107.0, 1.107.1, 1.107.2, 1.107.4, 1.107.5, 1.107.6, 1.77.0, 1.78.0, 1.79.0, 1.80.0, 1.81.0, 1.82.0, 1.83.0 and 90 more | 1.107.7, 2.52.0 | pip install --upgrade 'pydantic-ai-slim>=1.107.7'pip install --upgrade 'pydantic-ai-slim>=2.52.0' |
Applications using Pydantic AI's local web-fetch tool can experience excessive CPU and memory use when it converts attacker-controlled HTML. An agent must fetch the affected page; provider-native web fetching is not affected.
Nested block elements cause HTML-to-Markdown conversion to reprocess accumulated text at each level and can greatly expand the intermediate output. The response-body limit bounds downloaded bytes, while the returned-content limit is applied only after conversion. On current releases, conversion runs in a worker thread but can still consume substantial resources and delay other work in the process. Older releases performed conversion on the event loop.
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.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.003 on 2026-11-24 to 0.005 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.003 | first score | v2026.06.15 |
| 2026-11-26 | 0.005 | 0.003 | v2026.06.15 |