CVE-2026-107294

Pydantic AI: Unbounded memory use when downloading remote content via web_fetch or FileUrl

MEDIUM
6.5
CVSS Score
Published: October 8, 2026 at 04:59 PM UTC
Updated: October 13, 2026 at 01:49 PM 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.4%
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.2 and 2.24.0, web_fetch_tool, the WebFetch local fallback, and remote FileUrl media downloads buffer the complete HTTP response body before enforcing content-size controls. An attacker-influenced URL can stream an arbitrarily large response that exhausts process memory and crashes the worker; affected media types include ImageUrl, DocumentUrl, VideoUrl, and AudioUrl. SSRF protections remain effective, and the impact is limited to availability. This issue is fixed in versions 1.107.2 and 2.24.0.

Affected

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

References (7)

x_refsource_MISCPatchIssue Tracking
Source: cverecord
https://github.com/pydantic/pydantic-ai/pull/7141
x_refsource_MISCPatchIssue Tracking
Source: cverecord
https://github.com/pydantic/pydantic-ai/pull/7308
x_refsource_MISCPatchRelease Notes
Source: cverecord
https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.2
x_refsource_MISCPatchRelease NotesVendor Advisory
Source: cverecord
https://github.com/pydantic/pydantic-ai/releases/tag/v2.24.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
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-400

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