Skip to content
OpenAdvisories
High · 8.6 CVE-2026-25580 EUVD-2026-5574GHSA-2jrp-274c-jhv3PYSEC-2026-2976PYSEC-2026-2980

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

Published Feb 6, 2026 · Updated Jul 15, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
pydantic pydantic-ai >= 0.0.26, < 1.56.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pydantic-ai >= 0.0.26, < 1.56.0 1.56.0 GHSA-2jrp-274c-jhv3
PyPI pydantic-ai-slim >= 0.0.26, < 1.56.0 1.56.0 GHSA-2jrp-274c-jhv3

References