CVE-2026-54249

Medium

Description

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.

SeverityMedium
CVSS6.8
Exploit probability—
ProductPydantic Ai
PublishedJul 29, 2026
First seenJul 29, 2026

How to fix

Update
  • pydantic pydantic_ai1.105.0 or later
  • pydantic-ai-slim1.106.0, 2.0.0b6 or later
  • pydantic-ai1.106.0, 2.0.0b6 or later

Affected products

ProductAffected versionsFixed in
pydantic pydantic_ai1.65.0 ≤ v < 1.105.0, 2.0.01.105.0
pydantic-ai-slimPyPI1.65.0 ≤ v < 1.106.0, 2.0.0b1 ≤ v < 2.0.0b61.106.0, 2.0.0b6
pydantic-aiPyPI1.65.0 ≤ v < 1.106.0, 2.0.0b1 ≤ v < 2.0.0b61.106.0, 2.0.0b6

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-54249 · Pydantic Ai · Dark Radar