Skip to content
HighVulnerability

CVE-2026-25640: Pydantic AI web UI path traversal via version query parameter

Identifier
CVE-2026-25640
Published
Record updated
View JSON
Affected
  • pydantic-ai >= 1.34.0, < 1.51.0
  • pydantic-ai-slim >= 1.34.0, < 1.51.0
Fixed in
1.51.0
  • pydantic-ai 1.51.0 released January 30, 2026, 6 days before disclosure
  • pydantic-ai-slim 1.51.0 released January 30, 2026, 6 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

Pydantic AI versions from 1.34.0 before 1.51.0 contain a path traversal flaw in the web UI. The version query parameter in the CDN URL is not validated, so a crafted URL makes the server fetch and serve attacker-controlled HTML/JavaScript from another location on the same CDN. Only applications using Agent.to_web or clai web are affected, and an attacker who lures a victim into clicking the link or loading it in an iframe can run code in the victim's browser and steal chat history and other client-side data.

Mitigation

Fixed in 1.51.0.