Server-side Request Forgery (SSRF) Affecting pydantic-ai package, versions [1.77.0,1.107.6)[2.0.0b1,2.44.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.37% (30th 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 Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

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

Introduced: 8 Oct 2026

NewCVE-2026-107288  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade pydantic-ai to version 1.107.6, 2.44.0 or higher.

Overview

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

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) through the web_fetch_tool process. An attacker can access restricted hosts by supplying a hostname that is normalized differently by the resolver, bypassing domain restrictions.

CVSS Base Scores

version 4.0
version 3.1