GHSA-wjp5-868j-wqv7 · Severity: high · Ecosystem: pip — Pydantic AI has Stored XSS via Path Traversal in Web UI CDN URL
Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 1.34.0 to before 1.51.0, a path traversal vulnerability in the Pydantic AI web UI allows an attacker to serve arbitrary JavaScript in the context of the application by crafting a malicious URL. In affected versions, the CDN URL is constructed using a version query parameter from the request URL. This parameter is not validated, allowing path traversal sequences that cause the server to fetch and serve attacker-controlled HTML/JavaScript from an arbitrary source on the same CDN, instead of the legitimate chat UI package. If a victim clicks the link or visits it via an iframe, attacker-controlled code executes in their browser, enabling theft of chat history and other client-side data. This vulnerability only affects applications that use Agent.to_web to serve a chat interface and clai web to serve a chat interface from the CLI. These are typically run locally (on localhost), but may also be deployed on a remote server. This vulnerability is fixed in 1.51.0.
Conclusion & alert: CVE-2026-25640 is rated Low Risk (29.1/100): CVSS High severity, with low exploitation likelihood (EPSS 0.01%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-02-07 | — | 0.01% | — |
Full EPSS history (1 record total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.1 | 3.1 | HIGH |
|
2.8 | 4.2 | [email protected] |
| 5.4 | 3.1 | MEDIUM |
|
2.8 | 2.5 | [email protected] |
GHSA-wjp5-868j-wqv7 · Severity: high · Ecosystem: pip — Pydantic AI has Stored XSS via Path Traversal in Web UI CDN URL
| vendor | priority | summary | link |
|---|---|---|---|
redhat
|
high | — | https://access.redhat.com/security/cve/CVE-2026-25640 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| pydantic | pydantic_ai | >= 1.34.0, < 1.51.0 | cpe:2.3:a:pydantic:pydantic_ai:*:*:*:*:*:python:*:* |
| URL | Tags |
|---|---|
| https://github.com/pydantic/pydantic-ai/releases/tag/v1.51.0 | Product Release Notes |
| https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-wjp5-868j-wqv7 | Vendor Advisory |