Appsecure logo

CVE-2026-25580: High Vulnerability in Pydantic AI

A high-severity Server-Side Request Forgery (SSRF) vulnerability exists in Pydantic AI affecting versions 0.0.26 to 1.56.0. Attackers can exploit this flaw to access internal resources. Organizations should prioritize patching immediately to mitigate risks.

HIGHCVSS 8.6 · Published February 6, 2026

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

The vulnerability identified as CVE-2026-25580 is a significant security concern for users of Pydantic AI, a Python framework designed for building applications with Generative AI. This vulnerability allows for a Server-Side Request Forgery (SSRF) through the framework's URL download functionality. Applications that accept message history from untrusted sources are particularly at risk, as attackers can inject malicious URLs that can lead to unintended HTTP requests to internal network resources. This could potentially expose internal services or sensitive cloud credentials.

With a CVSS score of 8.6, classified as high severity, the implications of this vulnerability are profound. The attack vector is network-based, and the complexity of exploitation is low, meaning that even a moderately skilled attacker could leverage this flaw. The risk to organizations includes unauthorized access to internal systems and data breaches, which could have severe consequences for both operational integrity and customer trust.

The vulnerability affects all versions of Pydantic AI from 0.0.26 up to, but not including, 1.56.0. It is crucial for organizations utilizing this framework to update to the patched version 1.56.0 to eliminate this risk. The urgency for defenders is high, and organizations should prioritize patching immediately.

Currently, there are no known exploits or public proof of concepts available for this vulnerability, but given its nature and the widespread use of Pydantic AI, vigilance is necessary. Organizations are advised to monitor their systems and ensure that they are running the latest version of the software to mitigate potential risks.

Vulnerability Details

The vulnerability described in CVE-2026-25580 specifically involves Server-Side Request Forgery (SSRF) within the URL download functionality of Pydantic AI. The official description states that 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. This vulnerability is particularly critical as it can lead to unauthorized access to internal services or sensitive cloud credentials.

The CVSS base score for this vulnerability is 8.6, indicating a high severity level. This score reflects the potential impact on confidentiality, integrity, and availability, with a high confidentiality impact and no integrity or availability impact. The attack vector is classified as network, and the attack complexity is low, meaning that exploitation does not require advanced skills.

The vulnerability affects versions of Pydantic AI from 0.0.26 to before 1.56.0, and it is crucial to note that this flaw has been addressed in version 1.56.0.

Technical Analysis

The root cause of CVE-2026-25580 lies in the way Pydantic AI handles URL downloads, particularly when processing message history from external users. The vulnerability allows attackers to craft malicious URLs that can direct the server to make unintended HTTP requests to internal resources, which can lead to significant security breaches.

The attack vector is classified as network-based, indicating that an attacker can exploit the vulnerability remotely without requiring physical access to the vulnerable system. The attack complexity is low, meaning that the exploitation process does not require advanced skills or resources. Importantly, the exploitation of this vulnerability does not require any privileges, nor does it necessitate user interaction, making it particularly dangerous.

The confidentiality impact of this vulnerability is high, as it may allow unauthorized access to sensitive internal information, while the integrity and availability impacts are not applicable in this scenario. Organizations utilizing Pydantic AI should be aware of this vulnerability, especially if their applications accept external messages.

Risk & Impact Analysis

The potential risks associated with CVE-2026-25580 are significant, especially for organizations that rely on Pydantic AI for their applications. The vulnerability allows for unauthorized access to internal network resources, which could lead to data breaches and significant operational disruptions.

Risk to organizations includes exposure of sensitive information, loss of customer trust, and potential regulatory repercussions. The blast radius of this vulnerability is considerable, especially for businesses that integrate Pydantic AI into critical workflows or applications that handle sensitive data.

Given the CVSS score of 8.6, the urgency for organizations to address this vulnerability is high. Organizations should prioritize patching immediately to avoid potential exploitation.

Exploitation Status

Signal

Status

Known Exploit

No

Public PoC

No

Actively Exploited

No

Ransomware Use

No

Affected Versions

The vulnerability affects all versions of Pydantic AI from 0.0.26 to before 1.56.0. Organizations should ensure they are using version 1.56.0 or later to mitigate this vulnerability.

Mitigation & Remediation

Organizations should upgrade to Pydantic AI version 1.56.0 as soon as possible. If immediate upgrading is not feasible, organizations should implement strict input validation on URLs received from external sources, ensuring that untrusted input cannot trigger internal requests. Additionally, network controls should be established to prevent unauthorized access to internal services.

For further guidance, organizations can refer to our comprehensive resources on penetration testing and security best practices.

Detection Guidance

Organizations should monitor logs for unusual outbound requests that could indicate exploitation attempts. Behavioral anomalies in application performance or unexpected internal requests should be thoroughly investigated. Implementing network signatures to detect and block suspicious activity is also recommended.

AppSecure Threat Intelligence Insight

The long-term significance of CVE-2026-25580 lies in the increasing integration of AI technologies within applications, which raises the stakes for security. Organizations must remain vigilant as vulnerabilities in AI frameworks can have widespread implications.

This vulnerability exemplifies the need for strict input validation and security controls when handling untrusted data. Security teams should learn from this incident to enhance their defensive measures against similar vulnerabilities in AI-driven applications.

For additional insights on managing vulnerabilities and implementing robust security practices, consider exploring our articles on vulnerability management programs, penetration testing methodologies, and the importance of security testing best practices to defend against emerging threats.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.