CVE-2026-25580: Pydantic AI Affected by Server-Side Request Forgery (SSRF) in URL Download Handling
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.
Security readout for executives and security teams
Plain-English summary
Pydantic AI versions 0.0.26 through before 1.56.0 can be tricked into making server-side web requests when untrusted users supply message history containing URLs. In exposed applications, this could let an attacker reach internal services or cloud credential endpoints through the application server.
Executive priority
Prioritize remediation for internet-facing AI workflows that ingest user-provided conversation history. The business risk is confidential internal data exposure, not service disruption, and the fix is identified as upgrading to 1.56.0.
Technical view
This is a CWE-918 SSRF in Pydantic AI URL download handling. The advisory scope is limited to applications that accept message history from external or untrusted users. The CVSS 3.1 score is 8.6 because exploitation is network reachable, unauthenticated, low complexity, and can expose high-confidentiality internal data.
Likely exposure
Exposure is limited to Python applications using pydantic-ai >=0.0.26 and <1.56.0 that accept externally supplied message history. Internal-only uses or applications that do not accept untrusted message history are not described as affected by the source bundle.
Exploitation context
The provided sources do not show CISA KEV listing or active exploitation. The risk comes from attacker-controlled URLs causing server-side requests to internal network resources, potentially including cloud metadata or internal services.
Researcher notes
Do not broaden scope beyond pydantic-ai and the untrusted message-history condition. Evidence supports SSRF and high confidentiality impact, but does not cite public exploitation, affected downstream products, or additional vendor mitigations beyond the fixed version.
Mitigation direction
Upgrade pydantic-ai to version 1.56.0 or later.
Identify applications accepting message history from external users.
Follow the Pydantic advisory and commit guidance for remediation details.
Restrict or disable URL download behavior for untrusted message history where feasible.
Review outbound network controls for access to internal services and metadata endpoints.
Validation and detection
Inventory deployed pydantic-ai versions across services and build artifacts.
Confirm affected services do or do not accept external message history.
Verify upgraded deployments run pydantic-ai 1.56.0 or later.
Review logs for unexpected server-side outbound requests to internal addresses.
Check dependency lockfiles and container images for vulnerable versions.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-918: Information exposure and cloud metadata lookup
Information exposure and SSRF weaknesses can make discovery, cloud metadata, and credential material review relevant. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references SSRF or metadata access, so cloud discovery and credential material review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-918 · source CWE mapping
Server-Side Request Forgery (SSRF)
Server-Side Request Forgery (SSRF) represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.