Server-side Request Forgery (SSRF) Affecting pydantic-ai-slim package, versions [1.65.0,1.106.0)[2.0.0b1,2.0.0b6)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.2% (10th 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-18858000
  • published16 Aug 2026
  • disclosed13 Aug 2026
  • creditEQSTLab

Introduced: 13 Aug 2026

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

How to fix?

Upgrade pydantic-ai-slim to version 1.106.0, 2.0.0b6 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) through UIAdapter.sanitize_messages in pydantic_ai_slim/pydantic_ai/ui/_adapter.py and VercelAIAdapter.from_request/dispatch_request in pydantic_ai_slim/pydantic_ai/ui/vercel_ai/_adapter.py. An attacker can cause the server to fetch arbitrary provider or cloud-storage files with its own credentials by submitting message history that contains client-controlled UploadedFile references in providerMetadata. This lets the attacker read files the application’s model-provider or storage identity can access, exposing private objects or other tenants’ data to the user.

CVSS Base Scores

version 4.0
version 3.1