Skip to main content
← All vulnerabilities
CVE-2026-25580PYSEC-2026-2976GHSA-2JRP-274C-JHV3PYSEC-2026-2980

Pydantic AI Affected by Server-Side Request Forgery (SSRF) in URL Download Handling

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.56.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • pydantic pydantic-ai

    From 0.0.26 · fixed in 1.56.0

  • pydantic-aiPyPI

    From 0.0.26 · fixed in 1.56.0

  • pydantic-ai-slimPyPI

    From 0.0.26 · fixed in 1.56.0

References 2

GitHub · pydantic/pydantic-ai