MediumVulnerability
GHSA-v36g-jcw9-x7cw: Pydantic AI: Excessive resource use when local web fetching converts nested HTML
- Identifiers
- CVE-2026-107287GHSA-v36g-jcw9-x7cw
- Published
- Record updated
- 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.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- pydantic-aiPyPILLM dependency since 2024-05-20 · 4 tracked dependents
- pydantic-ai-slimPyPILLM dependency since 2024-11-25 · 8 tracked dependents
Related items
- MediumCVE-2026-54038: LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.9, GET…Similar attack · NVD/CVE Database
- MediumCVE-2026-54045: LibreChat password reset request deletes pending email verification tokensSimilar attack · NVD/CVE Database
- MediumCVE-2026-114499: codebase-memory-mcp gitignore matcher exponential backtracking stalls indexingSimilar attack · NVD/CVE Database
- MediumCVE-2026-114497: codebase-memory-mcp provides local code intelligence for developers and AI agents through a persistent graph and MCP…Similar attack · NVD/CVE Database
- HighCVE-2026-114494: codebase-memory-mcp query_graph stack overflow via oversized Cypher RETURNSimilar attack · NVD/CVE Database