CVE-2026-54249: CWE-918: Server-Side Request Forgery (SSRF) in pydantic pydantic-ai
CVE-2026-54249 is a Server-Side Request Forgery (SSRF) vulnerability in pydantic-ai, a Python agent framework for Generative AI applications. Versions 1.65.0 through 1.105.0 and 2.0.0b1 through 2.0.0b5 allow a client submitting message history to a Pydantic AI UI adapter to reference arbitrary files in the application's model-provider or cloud-storage account. This occurs because UploadedFile references are forwarded without validation, enabling the server to access files using its own credentials. The issue is fixed in versions 1.106.0 and 2.0.0b6. The vulnerability has a CVSS 3.1 score of 6.8 (medium severity).
AI Analysis
Technical Summary
Pydantic AI versions 1.65.0 through 1.105.0 and 2.0.0b1 through 2.0.0b5 contain an SSRF vulnerability where an attacker can craft message history referencing UploadedFile objects that the server resolves using its own identity (IAM role, service account, or API key). Because these references are not validated, the server may read arbitrary files from its own or other tenants' cloud storage accounts if the attacker can guess valid file identifiers. This vulnerability has been addressed in versions 1.106.0 and 2.0.0b6.
Potential Impact
An attacker can cause the server to access arbitrary files in its own or other tenants' cloud storage accounts by exploiting the lack of validation on UploadedFile references. This can lead to unauthorized disclosure of sensitive data. The vulnerability does not allow modification or denial of service but impacts confidentiality. Exploitation requires knowledge or guessing of valid file identifiers.
Mitigation Recommendations
The vendor manages remediation for this cloud-hosted service. The vulnerability is fixed in pydantic-ai versions 1.106.0 and 2.0.0b6. Users should upgrade to these or later versions to mitigate the issue. Patch status is confirmed as available. No additional mitigation actions are specified.
CVE-2026-54249: CWE-918: Server-Side Request Forgery (SSRF) in pydantic pydantic-ai
Description
CVE-2026-54249 is a Server-Side Request Forgery (SSRF) vulnerability in pydantic-ai, a Python agent framework for Generative AI applications. Versions 1.65.0 through 1.105.0 and 2.0.0b1 through 2.0.0b5 allow a client submitting message history to a Pydantic AI UI adapter to reference arbitrary files in the application's model-provider or cloud-storage account. This occurs because UploadedFile references are forwarded without validation, enabling the server to access files using its own credentials. The issue is fixed in versions 1.106.0 and 2.0.0b6. The vulnerability has a CVSS 3.1 score of 6.8 (medium severity).
CVSS v3.1
Score 6.8medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Pydantic AI versions 1.65.0 through 1.105.0 and 2.0.0b1 through 2.0.0b5 contain an SSRF vulnerability where an attacker can craft message history referencing UploadedFile objects that the server resolves using its own identity (IAM role, service account, or API key). Because these references are not validated, the server may read arbitrary files from its own or other tenants' cloud storage accounts if the attacker can guess valid file identifiers. This vulnerability has been addressed in versions 1.106.0 and 2.0.0b6.
Potential Impact
An attacker can cause the server to access arbitrary files in its own or other tenants' cloud storage accounts by exploiting the lack of validation on UploadedFile references. This can lead to unauthorized disclosure of sensitive data. The vulnerability does not allow modification or denial of service but impacts confidentiality. Exploitation requires knowledge or guessing of valid file identifiers.
Mitigation Recommendations
The vendor manages remediation for this cloud-hosted service. The vulnerability is fixed in pydantic-ai versions 1.106.0 and 2.0.0b6. Users should upgrade to these or later versions to mitigate the issue. Patch status is confirmed as available. No additional mitigation actions are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-12T16:25:43.085Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Is Cloud Service
- true
Threat ID: 6a6a68269c2644c7f80739e2
Added to database: 07/29/2026, 20:52:54 UTC
Last enriched: 07/29/2026, 21:07:17 UTC
Last updated: 07/29/2026, 21:12:03 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.