llamaCVEVulnerability Intelligence
/
Pydantic AI Harness

CVE-2026-133161

Pydantic AI Harness denial of service via ANSI stripping in ToolOutputLimits

An attacker can send crafted tool output to stall the event loop, delaying other requests and agent runs.

UnclearParche disponibleregex denial of service (ReDoS)
Descargar PNG JSON
CVSS 3.1
7.5
Alta
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Fuente: CNA
ExplotaciónSin evidenciaSSVC: ninguna · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -2 d de la divulgación
Exposición1 dDesde la divulgación, 19 nov 2026, 9:16 a. m.
Detección12 minDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir
Remediar en la ventana regular de mantenimiento
Sin explotación conocida, automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +2
Explotación
Remediación
Parche 0.70.0
Monitoreo
Detectada +1
Fuente: OSV +1
17 nov 26
19 nov 26
20 nov 26
21 nov 26
17 nov 26
18 nov 26
19 nov 26
20 nov 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 0.70.0 pydantic-ai-harness · -2 d desde divulgación
Divulgación Publicada CVE-2026-133161 divulgada · CVSS 7.5 (CNA)
Monitoreo Detectada Ingresó al índice
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Modificada Última actualización del registro
Monitoreo Fuente: NIST NVD Registro visto por primera vez en NIST NVD
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Resumen generado por IA · CC-BY 4.0 · 19 nov 2026

The pydantic-ai-harness package's ToolOutputLimits capability can be made to stall the event loop when ANSI stripping is enabled, delaying other requests and agent runs in the same process. An attacker who can place text in content a tool returns, such as shell output, file contents, fetched pages, or MCP server responses, can trigger this remotely without logging in or any user action.

Affects pydantic-ai-harness versions 0.4.0 through 0.69.0 in applications that run tools whose output an attacker can influence. The checked facts list no fixed version.

¿Qué significa?ToolOutputLimits ANSI stripping can take quadratic time on crafted tool output of a few hundred kilobytes. This can occupy the event loop for tens of seconds to minutes, delaying other requests and agent runs in the same process.
¿Quién está afectado?Affected versions are pydantic-ai-harness 0.4.0 through 0.69.0. The setup is an application that runs tools whose output an attacker can influence, such as shell commands, file reads, fetched pages or MCP servers. Check the installed version with pip show pydantic-ai-harness.
¿Qué hacer?The checked facts name no fixed version and no vendor patch identifiers, so no upgrade target can be given from them. Check the advisory for an update.
no-patchThe checked facts give no workaround. Limiting the application to tools whose output an attacker cannot influence avoids the setup described in the advisory.
Descripción original del registro (Pydantic)

### Summary ui With `strip_ansi=True`, Pydantic AI Harness's `ToolOutputLimits` capability removes ANSI escape sequences from tool output with a pattern that takes time quadratic in the length of a line. A tool result of a few hundred kilobytes, crafted with many unterminated escape sequences, can occupy the event loop for tens of seconds to minutes, delaying every other request and agent run in the process. ### Details This affects applications that set `strip_ansi=True` on `ToolOutputLimits` (named `OverflowingToolOutput` before 0.13.0) and run tools whose output an attacker can influence, such as shell commands, file reads, fetched pages or MCP servers. Stripping runs on the event loop before the capability reduces the output, so its own size limits do not bound it. The assumed attacker can place text in content a tool returns. ### Mitigation Upgrade `pydantic-ai-harness` to 0.70.0 or later. Until then, leave `strip_ansi` at its default, `False`. On Pydantic AI v1, the harness cannot be upgraded past 0.4.0. Upgrade to Pydantic AI v2 and `pydantic-ai-harness` 0.70.0, or leave `strip_ansi` off.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Affected pydantic-ai-harness versions 0.4.0 through 0.69.0“>= 0.4.0, <= 0.69.0”
02
Application runs tools whose output an attacker can influence, such as shell commands, file reads, fetched pages or MCP servers“run tools whose output an attacker can influence, such as shell commands, file reads, fetched pages or MCP servers”
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:N
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
10.0/ 10Muy alto
Vector 10.0 (muy fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
pydantic-ai-harness≥ 0.4.0 ≤ 0.69.0
0.4.0
0.69.0
0.71.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypipydantic-ai-harness
Corregida 0.70.0 -2 d 0.71.0 no afectada
Versiones corregidas0.70.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/pydantic/pydantic-ai/security/advisories/GHSA-m4cr-m4qc-9hh3

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.