CVE-2026-25640Pydantic Ai
Media 5.4 Sin autenticación
Seguir: esta CVE · Pydantic · Pydantic Ai Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 47
- CVSS 3.1
- 5.4
- EPSS
- —
- Requiere autenticación
- No
- Publicada
- 6 feb 2026
- Actualizada
- 15 jul 2026
- Categoría
- Aplicación · Multiplataforma
- SSVC (CISA)
- Explotación: ninguna · Automatizable: no · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Qué pasa
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.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Pydantic Ai.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| PyPI | pydantic-ai |
≥ 1.34.0 < 1.51.0 |
1.51.0 |
pip install "pydantic-ai>=1.51.0" |
| PyPI | pydantic-ai |
≥ 1.34.0 < 1.51.0 |
1.51.0 |
pip install "pydantic-ai>=1.51.0" |
| PyPI | pydantic-ai-slim |
≥ 1.34.0 < 1.51.0 |
1.51.0 |
pip install "pydantic-ai-slim>=1.51.0" |
| PyPI | pydantic-ai-slim |
≥ 1.34.0 < 1.51.0 |
1.51.0 |
pip install "pydantic-ai-slim>=1.51.0" |
Según OSV / GitHub Advisories (GHSA-wjp5-868j-wqv7, PYSEC-2026-2979, PYSEC-2026-2983). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| pydantic | pydantic_ai | ≥ 1.34.0 < 1.51.0 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Product Release Notes
- github.com Vendor Advisory
- access.redhat.com
- bugzilla.redhat.com
- security.access.redhat.com