Skip to content

pydantic-ai

VercelAIAdapter trusts client-controlled `providerMetadata` to construct `UploadedFile` — S3/GCS confused deputy via provider metadata injection

CVE-2026-54249Published 29 Jul 2026, 20:28 UTC

Real-world risk

3.1/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

6.8

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
pydantic-aiNiche>= 1.65.0, < 1.106.0; >= 2.0.0b1, < 2.0.0b61.106.0, 2.0.0b6
pydantic-ai-slimNiche>= 2.0.0b1, < 2.0.0b6; >= 1.65.0, < 1.106.02.0.0b6, 1.106.0

What to do

Update to a fixed version: 1.106.0, 2.0.0b6.

Why this score

FactorValueEvidence×
ImpactMajor data exposureReads secrets, credentials, databases, arbitrary filesFrom the CVSS vector0.80
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.2% chance of exploitation in 30 days (percentile 10), as of 2026-12-03.

The arithmetic
  1. Prerequisites multiplied together0.450
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.8 × prerequisites 0.45 × threat 0.853.060
  4. Rounded to one decimal between 0.1 and 103.1

How the score works

Exploitation and evidence timeline

  1. 29 Jul 2026 Published
  2. 3 Dec 2026 Risk 3.1 (cvss fallback)

Weakness

CWE-918

References

Get alerts for pydantic-ai

Free email or text alerts when a vulnerability in pydantic-ai reaches risk 8 or higher. Nothing else.