GHSA-5M5Q-5QJ4-GX9H
Harness JWT redaction can take quadratic time, blocking the event loop
Texto original en inglés · Ver en español
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 0.70.0 | pydantic-ai-harness · -1 d desde divulgación | |
| Divulgación | Publicada | GHSA-5M5Q-5QJ4-GX9H divulgada · CVSS 7.5 (GitHub) | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The `jwt` pattern in Pydantic AI Harness's secret redaction backtracks in time quadratic in the length of the text it scans. A few hundred kilobytes of crafted text 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 use the guardrail detectors `redact_secrets` or `secret_data()` with the `jwt` pattern, which is included by default, on text an attacker can influence: user prompts checked by `InputGuardrail`, tool results checked by `ToolGuardrail`, or model output checked by `OutputGuardrail`. Synchronous guards run on the event loop.
The assumed attacker can send a prompt to the agent, or place text in content a tool returns.
Mitigation
Upgrade `pydantic-ai-harness` to 0.70.0 or later. Until then, leave the `jwt` pattern out by naming the patterns you need with `secret_data(only=[...])`.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypipydantic-ai-harness |
Corregida | 0.70.0 | -1 d | 0.71.0 no afectada |
0.70.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-5m5q-5qj4-gx9hLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
