CVE-2026-25580: Pydantic AI Affected by Server-Side Request Forgery (SSRF) in URL Download Handling
Vulnerability summary
CVE-2026-25580 is a high (CVSS 8.6) Server-Side Request Forgery vulnerability in pydantic pydantic_ai. EPSS estimates a 0.65% chance of exploitation in the next 30 days, higher than 51.1% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Timeline
- 06-02-2026PublishedVulnerability first disclosed.
- 15-07-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · PypiEcosystem advisory · calculated8.6HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
- NVDNIST8.6HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
EPSS trend
Probability
0.65%
Chance of exploitation in the next 30 days
Percentile
51%
Versus all other CVEs
30-day change
Decrease -0.09 pp
From 0.74% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundPydantic Ai
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Pydantic2 products
- pydantic_ai≥ 0.0.26, < 1.56.0
- pydantic-ai≥ 0.0.26, < 1.56.0
PyPI2 products
- pydantic-ai≥ 0.0.26, < 1.56.0
- pydantic-ai-slim≥ 0.0.26, < 1.56.0
2 vendors · 4 products
References
10 links- github.com/pydantic/pydantic-ai/security/advisories/GHSA-2jrp-274c-jhv3X Refsource CONFIRMWEBExploitMitigationVendor Advisory
- github.com/pydantic/pydantic-ai/commit/d398bc9d39aecca6530fa7486a410d5cce936301X Refsource MISCWEBPatch
- pypi.org/project/pydantic-aiPACKAGE