Pydantic AI framework patches path traversal XSS and SSRF vulnerabilities
Two vulnerabilities were disclosed in the Pydantic AI Python agent framework: a path traversal flaw in the web UI (CVE-2026-25640) that lets a crafted URL serve attacker-controlled JavaScript and steal chat history, and an SSRF flaw in URL download functionality (CVE-2026-25580) that can make the server request internal network resources. Both are fixed in versions 1.51.0 and 1.56.0 respectively.
Disclosed 6 February 2026 · Record updated 13 September 2026
Impact
Path traversal in the Agent.to_web/clai web chat interface allows execution of attacker-controlled JavaScript in a victim's browser, enabling theft of chat history and other client-side data; the SSRF flaw allows servers accepting untrusted message history to be forced to request internal services or cloud credentials.
Our coverage
No articles linked to this incident yet.
Sources
- nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-25640
- nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-25580
