CVE-2026-54249 Details
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.
A vulnerability exists in Pydantic AI versions 1.65.0 prior to 1.106.0 and 2.0.0b1 prior to 2.0.0b6. It allows clients to reference arbitrary files in the application's model-provider or cloud-storage account by injecting UploadedFile references into message history. The Vercel AI adapter, among others, forwards these references to the model provider without proper validation. Exploitation requires a valid file identifier, which may be guessable depending on the application's naming conventions.
Users can upgrade to Pydantic AI version 1.106.0 or 2.0.0b6, both of which include the necessary validation for UploadedFile references. If an upgrade is not possible, avoid passing untrusted client-submitted message history to the agent or remove UploadedFile references from incoming messages before processing.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-h7p7-w5gc-xj3w | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| pydantic pydantic ai | >= 1.65.0, < 1.105.0 2.0.0 beta1 2.0.0 beta2 2.0.0 beta3 2.0.0 beta4 2.0.0 beta5 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | Initial Analysis | [email protected] |
| Jul 30, 2026 | CVE Modified | CISA-ADP |
| Jul 29, 2026 | New CVE Received | [email protected] |