Allocation of Resources Without Limits or Throttling Affecting pydantic-ai package, versions [2.0.0b1,2.24.0)[1.77.0,1.107.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.44% (37th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-PYDANTICAI-20848951
  • published13 Oct 2026
  • disclosed8 Oct 2026
  • creditUnknown

Introduced: 8 Oct 2026

NewCVE-2026-107294  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade pydantic-ai to version 2.24.0, 1.107.2 or higher.

Overview

pydantic-ai is an AI Agent Framework, the Pydantic way

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the safe_download function in pydantic_ai/_ssrf.py and the web_fetch common tool, which impose no upper bound on HTTP response body sizes. An attacker who can influence the URLs fetched by an agent can cause the process to consume unbounded memory by directing it to a URL that returns an arbitrarily large response body, crashing the process.

CVSS Base Scores

version 4.0
version 3.1