Skip to content
HighVulnerability

CVE-2026-25580: Pydantic AI server-side request forgery in URL download via message history

Identifier
CVE-2026-25580
Published
Record updated
View JSON
Affected
  • pydantic-ai >= 0.0.26, < 1.56.0
  • pydantic-ai-slim >= 0.0.26, < 1.56.0
Fixed in
1.56.0
  • pydantic-ai 1.56.0 released February 5, 2026, on the day of disclosure
  • pydantic-ai-slim 1.56.0 released February 5, 2026, on the day of disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.6%

Summary

Pydantic AI, a Python agent framework for Generative AI applications, contains a Server-Side Request Forgery (SSRF) flaw in its URL download functionality in versions from 0.0.26 to before 1.56.0. When applications accept message history from untrusted sources, attackers can include malicious URLs that make the server send HTTP requests to internal network resources, potentially reaching internal services or cloud credentials. Only applications that accept message history from external users are affected.

Mitigation

This vulnerability is fixed in 1.56.0.