HIGHCVSS v3.1 7.5Vulnerability

CVE-2026-133161

### 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.

Properties

Severity
HIGH
Nvd fetched at
2026-11-22T12:30:49.958423+00:00
Epss score
0.00411
Cvss severity
HIGH
Cvss score
7.5
Retrieved at
2026-11-22T12:32:26+00:00
Last source
FIRST EPSS
Score
7.5
Cvss version
3.1
Cve id
CVE-2026-133161
Cvss vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
First seen by Signal
2026-11-19T15:26:52+00:00
Name
CVE-2026-133161
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published at
2026-11-19T15:17:35.953
Last modified
2026-11-19T15:17:35.953
Epss percentile
0.36154

Related Entities (1)

HAS_WEAKNESS (1)

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-133161 (CVSS v3.1 7.5) — Ninja Signal Threat Intelligence | Ninja Signal