Server-side Request Forgery (SSRF) Affecting pydantic-ai-slim package, versions [1.56.0,1.102.0)[2.0.0b1,2.0.0b3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.32% (25th 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-PYDANTICAISLIM-17362946
  • published17 Jun 2026
  • disclosed17 Jun 2026
  • creditAvraham Shemesh

Introduced: 17 Jun 2026

CVE-2026-48782  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade pydantic-ai-slim to version 1.102.0, 2.0.0b3 or higher.

Overview

pydantic-ai-slim is an Agent Framework / shim to use Pydantic with LLMs, slim package

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) due to the blocklist bypass via additional IPv6 transition forms when force_download='allow-local' is enabled. An attacker can access sensitive cloud IAM short-term credentials by bypassing the cloud-metadata blocklist using IPv6 transition forms such as IPv4-compatible, SIIT/IVI, and local NAT64 IPv6 addresses. This is only exploitable if the application is running on a network that routes the affected IPv6 transition forms, such as NAT64-configured networks or networks with an ISATAP tunnel.

Note:

This issue is due to incomplete fix for CVE-2026-46678.

CVSS Base Scores

version 4.0
version 3.1