What’s Vulnerable › Vulnerabilities
CVE-2026-25580: Pydantic AI Affected by Server-Side Request Forgery (SSRF) in URL Download Handling
- Severity: high (CVSS 8.6 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.7% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-02-06 · updated 2026-07-15
- Weakness: CWE-918
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.
Affected products
- pydantic-ai: from 0.0.26 before 1.56.0 — fixed in 1.56.0
How to fix
Upgrade to a fixed version: pydantic-ai 1.56.0. Check the vendor advisory for mitigations.
References
- https://github.com/pydantic/pydantic-ai/commit/d398bc9d39aecca6530fa7486a410d5cce936301
- https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-2jrp-274c-jhv3
- https://access.redhat.com/security/cve/CVE-2026-25580
- https://bugzilla.redhat.com/show_bug.cgi?id=2437781
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25580.json
Get alerted when CVE-2026-25580 or the next vulnerability affects your stack