CVE-2026-107287

Pydantic AI: Excessive resource use when local web fetching converts nested HTML

MEDIUM
6.5
CVSS Score
Published: October 8, 2026 at 03:15 PM UTC
Updated: October 14, 2026 at 01:17 AM UTC
2 products affected across 1 vendorPydantic AIPydantic AI Slim

Using pydantic-ai by pydantic?

Get instant alerts when new vulnerabilities affect pydantic-ai - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

References (7)

x_refsource_MISCPatchVendor Advisory
Source: cverecord
https://github.com/pydantic/pydantic-ai/pull/8984
x_refsource_MISCPatchVendor Advisory
Source: cverecord
https://github.com/pydantic/pydantic-ai/pull/8985
x_refsource_MISCPatchRelease NotesVendor Advisory
Source: cverecord
https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.7
x_refsource_MISCPatchRelease NotesVendor Advisory
Source: cverecord
https://github.com/pydantic/pydantic-ai/releases/tag/v2.52.0

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

6.5MEDIUMGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-400CWE-407

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card