Live threats

All CVEs / Pydantic

CVE-2026-107287Pydantic Ai

Medium 6.5 No auth needed

Priority
54
CVSS 3.1
6.5
EPSS
—
Auth required
No
Published
Oct 8, 2026
Updated
Oct 14, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400, CWE-407
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pydantic Ai.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI pydantic-ai ≥ 1.77.0 < 1.107.7 1.107.7 pip install "pydantic-ai>=1.107.7"
PyPI pydantic-ai ≥ 2.0.0b1 < 2.52.0 2.52.0 pip install "pydantic-ai>=2.52.0"
PyPI pydantic-ai ≥ 1.77.0 < 1.107.7 1.107.7 pip install "pydantic-ai>=1.107.7"
PyPI pydantic-ai ≥ 2.0.0b1 < 2.52.0 2.52.0 pip install "pydantic-ai>=2.52.0"
PyPI pydantic-ai-slim ≥ 1.77.0 < 1.107.7 1.107.7 pip install "pydantic-ai-slim>=1.107.7"
PyPI pydantic-ai-slim ≥ 2.0.0b1 < 2.52.0 2.52.0 pip install "pydantic-ai-slim>=2.52.0"
PyPI pydantic-ai-slim ≥ 1.77.0 < 1.107.7 1.107.7 pip install "pydantic-ai-slim>=1.107.7"
PyPI pydantic-ai-slim ≥ 2.0.0b1 < 2.52.0 2.52.0 pip install "pydantic-ai-slim>=2.52.0"

Per OSV / GitHub Advisories (GHSA-v36g-jcw9-x7cw, PYSEC-2026-4281, PYSEC-2026-4290). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pydanticpydantic_ai≥ 1.77.0 < 1.107.7
pydanticpydantic_ai≥ 2.0.0 < 2.52.0

Official sources

References

Links published by the sources. Open them with care.