CVE-2026-25640CWE-22CWE-79

Pydantic AI affected by Stored XSS via Path Traversal in Web UI CDN URL

High · published February 6, 2026

CVSS v3.1
7.1
EPSS
0%
Percentile
39.1
In the wild
Unconfirmed
What it is

⚡ A crafty URL could be all it takes to serve malicious JavaScript in your Pydantic AI chat interface! Think of this vulnerability as a sneaky delivery driver who follows an incorrect address to drop off a fraudulent package instead of the legitimate one. One little misstep in the URL means attackers can inject their malicious code right into your application’s context, just like that wrong delivery disrupts your day. If an unsuspecting user clicks the compromised link, they could find themselves at the mercy of attacker-controlled JavaScript. This could lead to the theft of sensitive chat history and other client-side data — an absolutely devastating outcome for privacy and security!

Put simply

Think of this vulnerability as a sneaky delivery driver who follows an incorrect address to drop off a fraudulent package instead of the legitimate one. One little misstep in the URL means attackers can inject their malicious code right into your application’s context, just like that wrong delivery disrupts your day. This path traversal vulnerability allows attackers to manipulate the version query parameter in the Pydantic AI web UI, causing the server to fetch and serve malicious HTML or JavaScript from an arbitrary CDN source instead of the intended chat UI package.

What to do

If an unsuspecting user clicks the compromised link, they could find themselves at the mercy of attacker-controlled JavaScript. This could lead to the theft of sensitive chat history and other client-side data — an absolutely devastating outcome for privacy and security! Upgrade your Pydantic AI to version 1.51.0 to eliminate this vulnerability. Additionally, review your application to ensure that all input is properly validated to prevent similar issues in the future. Don't forget to monitor your server for any suspicious activity! You've got this! With these steps, you can secure your application and protect your users! 🛡️

The record
Technical detail
CVSS v3.1
7.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00462 · 39.1th percentile
Weaknesses
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'); CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2026-02-06T20:01Z
EPSS history
Timeline
  • 06 FEB 20:01Z
    Pydantic AI affected by Stored XSS via Path Traversal in Web UI CDN URL
    cvelistv5