Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pydantic-ai
  4. ›
  5. CVE-2026-25580

CVE-2026-25580: Pydantic AI has Server-Side Request Forgery (SSRF) in URL Download Handling

February 6, 2026

A Server-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, such as those using:

  • Agent.to_web or clai web to serve a chat interface
  • VercelAIAdapter for Vercel AI SDK integration
  • AGUIAdapter or Agent.to_ag_ui for AG-UI protocol integration
  • Custom APIs that accept message history from user input

Applications that only use hardcoded or developer-controlled URLs are not affected.

References

  • github.com/advisories/GHSA-2jrp-274c-jhv3
  • github.com/pydantic/pydantic-ai
  • github.com/pydantic/pydantic-ai/commit/d398bc9d39aecca6530fa7486a410d5cce936301
  • github.com/pydantic/pydantic-ai/security/advisories/GHSA-2jrp-274c-jhv3
  • nvd.nist.gov/vuln/detail/CVE-2026-25580

Code Behaviors & Features

Detect and mitigate CVE-2026-25580 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.0.26 before 1.56.0

Fixed versions

  • 1.56.0

Solution

Upgrade to version 1.56.0 or above.

Impact 8.6 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

pypi/pydantic-ai/CVE-2026-25580.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 07 Feb 2026 00:18:26 +0000.