CVE-2026-54249CWE-918ssrf

CVE-2026-54249

Medium · published July 30, 2026

CVSS v3.1
6.8
EPSS
0%
Percentile
23.2
In the wild
Unconfirmed
What it is

Pydantic AI is a Python agent framework for building Generative AI applications. In versions 1.65.0 through 1.105.0, and 2.0.0b1 through 2.0.0b5, a client that submits message history to a Pydantic AI UI adapter (such as the Vercel AI adapter) can reference arbitrary files in the application's model-provider or cloud-storage account. While file URL parts are validated against a scheme allowlist, UploadedFile references — which point to a file by provider file ID or cloud-storage URI (e.g. s3://…, gs://…) — were forwarded without validation. Because the provider resolves an UploadedFile using the server-side identity (IAM role, service account, or provider API key) rather than the client's, an attacker can craft message history to make the server read objects from its own account or other tenants, given a referenceable identifier. Exploitation requires a valid file identifier, which is not always unguessable depending on how the application names objects. This issue has been fixed in versions 1.106.0 and 2.0.0b6.

The record
Technical detail
CVSS v3.1
6.8 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00315 · 23.2th percentile
Weakness
CWE-918 · Server-Side Request Forgery (SSRF)
Published
2026-07-30T01:17Z
Affected products (6)
ProductVersionsFixed in
pydantic/pydantic_ai≥ 1.65.0, < 1.105.01.105.0
pydantic/pydantic_aiall versions—
pydantic/pydantic_aiall versions—
pydantic/pydantic_aiall versions—
pydantic/pydantic_aiall versions—
pydantic/pydantic_aiall versions—
References (1)
EPSS history
Timeline
  • 29 JUL 20:28Z
    VercelAIAdapter trusts client-controlled `providerMetadata` to construct `UploadedFile` — S3/GCS confused deputy via provider metadata injection
    cvelistv5