Pydantic AI Affected by Server-Side Request Forgery (SSRF) in URL Download Handling
pydantic-ai
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| pydantic-ai PyPI |
|
|
| pydantic-ai-slim PyPI |
|
|
pydantic-ai
| Product | Affected | Fixed in |
|---|---|---|
| pydantic-ai PyPI |
|
|
| pydantic-ai-slim PyPI |
|
|
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.
From the CVE record · GitHub_M
Pydantic AI’s URL download functionality is vulnerable to server-side request forgery when an application accepts message history from external users. An attacker can place malicious URLs in that history to make the server request internal network resources, potentially accessing internal services or cloud credentials.
Check applications using PyPI pydantic-ai or pydantic-ai-slim versions >=0.0.26 and <1.56.0 that accept message history from external users.