cve.bz

CVE-2026-25580 pydantic pydantic ai: SSRF

8.6 highExploit referenceEPSS 0.6%Fix available

High (8.6) in pydantic pydantic ai. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in pydantic-ai 1.56.0.

On this page
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.

Severity

CVSS 3.1

8.6 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
EPSS
0.6% (unchanged from 0.6% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 52nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-02-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-918 Server-Side Request Forgery (SSRF)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-25580 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-25580?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-25580?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-25580 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
pydantic:pydantic_aifrom 0.0.26 before 1.56.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2jrp-274c-jhv3PyPIpydantic-ai>=0.0.26 <1.56.01.56.0
GHSA-2jrp-274c-jhv3PyPIpydantic-ai-slim>=0.0.26 <1.56.01.56.0
PYSEC-2026-2976PyPIpydantic-ai>=0.0.26 <1.56.01.56.0
PYSEC-2026-2980PyPIpydantic-ai-slim>=0.0.26 <1.56.01.56.0

Red Hat

Red Hat rates this Important.

Red Hat's statement

This IMPORTANT vulnerability affects Red Hat Enterprise Linux AI products using Pydantic AI when applications process untrusted message history. A Server-Side Request Forgery (SSRF) flaw in URL download handling allows attackers to inject malicious URLs, potentially accessing internal network resources or cloud credentials. Exploitation requires applications to accept message history from external, untrusted sources.

Red Hat's mitigation

To mitigate, configure applications using Pydantic AI to avoid accepting message history from untrusted external sources. Implement robust input validation and sanitization for all URLs processed by the application. Additionally, restrict network access for the Pydantic AI application to only essential internal and external resources, thereby limiting the potential impact of SSRF attacks.

ProductPackageStateAdvisory
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-cuda-rhel9Will not fix
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/disk-image-cuda-rhel9Will not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-25580.

Attack patterns (CAPEC)

  • CAPEC-664 Server Side Request Forgery Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON