CVE-2026-25580CWE-918

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

High · published February 6, 2026

CVSS v3.1
8.6
EPSS
1%
Percentile
54.2
In the wild
Unconfirmed
What it is

⚡ A single malicious URL is all it takes for an attacker to make your server fetch sensitive internal resources! This Server-Side Request Forgery (SSRF) vulnerability in Pydantic AI can let untrusted message histories access your private cloud credentials. 🔥 Think of it like a delivery driver who blindly follows any address on the package, delivering sensitive information to anyone who asks. If they receive a request from a shady source, they might unwittingly expose your internal resources! An attacker could gain access to your internal services or cloud credentials, potentially compromising sensitive data and leading to cascading security failures. This could result in unauthorized data exposure and severe data breaches, which might take time and resources to recover from!

Put simply

Think of it like a delivery driver who blindly follows any address on the package, delivering sensitive information to anyone who asks. If they receive a request from a shady source, they might unwittingly expose your internal resources! The SSRF vulnerability in Pydantic AI allows an attacker to exploit the URL download functionality by crafting malicious URLs, causing the server to make unauthorized HTTP requests to internal network resources, which could expose sensitive information.

What to do

An attacker could gain access to your internal services or cloud credentials, potentially compromising sensitive data and leading to cascading security failures. This could result in unauthorized data exposure and severe data breaches, which might take time and resources to recover from! Upgrade Pydantic AI to version 1.56.0 or later immediately. Be sure to validate and sanitize all message history input from external users, as this is key to preventing such attacks. Implement strict whitelisting for any URLs that can be processed by your application. You've got this! Secure your application and keep it safe from sneaky attackers! 🛡️

The record
Technical detail
CVSS v3.1
8.6 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00743 · 54.2th percentile
Weakness
CWE-918 · Server-Side Request Forgery (SSRF)
Published
2026-02-06T21:01Z
EPSS history
Timeline
  • 06 FEB 21:01Z
    Pydantic AI Affected by Server-Side Request Forgery (SSRF) in URL Download Handling
    cvelistv5