๐Ÿ” CVE Alert

CVE-2026-54249

MEDIUM 6.8

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

CVSS Score
6.8
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-918
Vendor pydantic
Product pydantic-ai
Published Jul 29, 2026
Stay Ahead of the Next One

Get instant alerts for pydantic pydantic-ai

Be the first to know when new medium vulnerabilities affecting pydantic pydantic-ai are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

Affected Versions

pydantic / pydantic-ai
>= 1.65.0, < 1.106.0 >= 2.0.0b1, < 2.0.0b6
pydantic / pydantic-ai-slim
>= 2.0.0b1, < 2.0.0b6 >= 1.65.0, < 1.106.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-h7p7-w5gc-xj3w