Vulnerability · Published Feb 6, 2026 · Assigned by GitHub_M
CVE-2026-25580Pydantic AI Affected by Server-Side Request Forgery (SSRF) in URL Download Handling
High 8.6
In plain English
A high-severity server-side request forgery in pydantic-ai from pydantic. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | pydantic-ai | 1.56.0 | GHSA-2jrp-274c-jhv3 |
| PyPI | pydantic-ai | 1.56.0 | PYSEC-2026-2976 |
| PyPI | pydantic-ai-slim | 1.56.0 | GHSA-2jrp-274c-jhv3 |
| PyPI | pydantic-ai-slim | 1.56.0 | PYSEC-2026-2980 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| pydantic | pydantic-ai | >= 0.0.26, < 1.56.0 |
Weakness: CWE-918 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
References
- https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-2jrp-274c-jhv3 x_refsource_CONFIRM
- https://github.com/pydantic/pydantic-ai/commit/d398bc9d39aecca6530fa7486a410d5cce936301 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-25580 vdb-entry, x_refsource_REDHAT
- RHBZ#2437781 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25580.json x_sadp-csaf-vex