CVE-2026-25580
HIGH 8.6CVSS 3.1Pydantic AI has 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.
- Published
- 6 Feb 2026
- Last modified
- 15 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-918
- Also known as
- GHSA-2jrp-274c-jhv3PYSEC-2026-2976PYSEC-2026-2980
- Sources
- NVDJSONOSV GHSA-2jrp-274c-jhv3JSONOSV PYSEC-2026-2976JSONOSV PYSEC-2026-2980JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| OSV | PyPA | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pydantic | pydantic_aicpe:2.3:a:pydantic:pydantic_ai:*:*:*:*:*:python:*:* |
>= 0.0.26, < 1.56.0 | 1.56.0 |
| OSV | PyPI | pydantic-ai | >= 0.0.26, < 1.56.0 | 1.56.0 |
| OSV | PyPI | pydantic-ai-slim | >= 0.0.26, < 1.56.0 | 1.56.0 |
References
- https://github.com/pydantic/pydantic-ai/commit/d398bc9d39aecca6530fa7486a410d5cce936301 · Patch, WEB
- https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-2jrp-274c-jhv3 · Exploit, Mitigation, Vendor Advisory, WEB
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2026-25580 · ADVISORY
- https://github.com/pydantic/pydantic-ai · PACKAGE
- https://pypi.org/project/pydantic-ai · PACKAGE
- https://github.com/advisories/GHSA-2jrp-274c-jhv3 · ADVISORY
- https://pypi.org/project/pydantic-ai-slim · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 6 Feb 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 Feb 2026)