Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-54249: CWE-918: Server-Side Request Forgery (SSRF) in pydantic pydantic-ai

0
Medium
VulnerabilityCVE-2026-54249cvecve-2026-54249cwe-918
Published: 07/29/2026 (07/29/2026, 20:28:07 UTC)
Source: CVE Database V5
Vendor/Project: pydantic
Product: 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

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

Affected software

pydantic-ai
pkg:pypi/pydantic-ai
Affected versions
>=1.65.0 <=1.105.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/29/2026, 21:07:17 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses