CVE-2026-25580 Details
Description
Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 0.0.26 to before 1.56.0, aServer-Side Request Forgery (SSRF) vulnerability exists in Pydantic AI's URL download functionality. When applications accept message history from untrusted sources, attackers can include malicious URLs that cause the server to make HTTP requests to internal network resources, potentially accessing internal services or cloud credentials. This vulnerability only affects applications that accept message history from external users. This vulnerability is fixed in 1.56.0.
A server-side request forgery (SSRF) vulnerability has been identified in Pydantic AI, a Python agent framework for generative AI applications. This vulnerability affects versions 0.0.26 prior to 1.56.0. The issue arises in the URL download feature, where applications that accept message history from untrusted sources can be exploited. Attackers can include malicious URLs that prompt the server to make HTTP requests to internal network resources, potentially accessing sensitive services or cloud credentials. The vulnerability is particularly relevant for applications using 'Agent.to_web', 'VercelAIAdapter', 'AGUIAdapter', or custom APIs that process user-supplied URLs.
Users can upgrade to Pydantic AI version 1.56.0 or later, where this vulnerability is fixed. For applications that need to access local network resources, the 'allow-local' option can be used with certain URL types. If an immediate upgrade is not possible, a history processor can be implemented to filter out private URLs before they reach the download function.
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 Feb 9, 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.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | redhat-SADP |
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| pydantic pydantic ai | >= 0.0.26, < 1.56.0 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 20, 2026 | Initial Analysis | [email protected] |
| Feb 6, 2026 | New CVE Received | [email protected] |