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...
Full CISO analysis pending enrichment.
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| Pydantic AI | pip | >= 1.65.0, < 1.106.0 | 1.106.0 |
| Pydantic AI | pip | >= 1.65.0, < 1.106.0 | 1.106.0 |
How severe is it?
What is the attack surface?
What should I do?
Patch available
Update Pydantic AI to version 1.106.0
Update Pydantic AI to version 1.106.0
Which compliance frameworks are affected?
Compliance analysis pending. Sign in for full compliance mapping when available.
Frequently Asked Questions
What is CVE-2026-54249?
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.
Is CVE-2026-54249 actively exploited?
No confirmed active exploitation of CVE-2026-54249 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-54249?
Update to patched version: Pydantic AI 1.106.0, Pydantic AI 1.106.0.
What is the CVSS score for CVE-2026-54249?
CVE-2026-54249 has a CVSS v3.1 base score of 6.8 (MEDIUM). The EPSS exploitation probability is 0.20%.
What are the technical details?
Original Advisory
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.
Weaknesses (CWE)
CWE-918 Server-Side Request Forgery (SSRF)
Primary
CWE-918 Server-Side Request Forgery (SSRF)
Primary
CWE-918 Server-Side Request Forgery (SSRF) CWE-918 — Server-Side Request Forgery (SSRF): The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N References
Timeline
Related Vulnerabilities
CVE-2026-25580 8.6 pydantic-ai: SSRF allows internal network access
Same package: pydantic-ai CVE-2026-48782 6.8 pydantic-ai: SSRF IPv6 bypass exposes cloud IAM creds
Same package: pydantic-ai CVE-2026-25640 5.4 pydantic-ai: Path Traversal enables file access
Same package: pydantic-ai CVE-2026-48737 4.9 pyload-ng: IPv6 SSRF bypass evades internal-IP guard
Same package: pydantic-ai