CVE-2026-54249
Published:July 29, 2026
Updated:August 04, 2026
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.
Affected Packages
pydantic-ai (CONDA):
Affected version(s) >=1.66.0 <1.106.0Fix Suggestion:
Update to version 1.106.0pydantic-ai-slim (CONDA):
Affected version(s) >=1.66.0 <1.106.0Fix Suggestion:
Update to version 1.106.0https://github.com/pydantic/pydantic-ai.git (GITHUB):
Affected version(s) >=v1.65.0 <v1.106.0Fix Suggestion:
Update to version v1.106.0pydantic-ai (PYTHON):
Affected version(s) >=2.0.0b1 <2.0.0b6Fix Suggestion:
Update to version 2.0.0b6pydantic-ai-slim (PYTHON):
Affected version(s) >=1.65.0 <1.106.0Fix Suggestion:
Update to version 1.106.0pydantic-ai-slim (PYTHON):
Affected version(s) >=2.0.0b1 <2.0.0b6Fix Suggestion:
Update to version 2.0.0b6pydantic-ai (PYTHON):
Affected version(s) >=1.65.0 <1.106.0Fix Suggestion:
Update to version 1.106.0Related Resources (3)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.9
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.8
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Server-Side Request Forgery (SSRF)
EPSS
Base Score:
0.20