Security mailing lists by PureSourceCode

CVE-2026-133161

HIGH 7.5CVSS 3.1

Harness `ToolOutputLimits` ANSI stripping can take quadratic time, blocking the event loop

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.

Published
19 Nov 2026
Last modified
23 Nov 2026
Assigned by
7cec5f2f-3032-4006-8740-31f605ffab5f
NVD status
Awaiting Analysis
Weakness
CWE-1333
Sources
NVDJSONCVE ListJSON

Scores

SourceScored byVersionScoreVector / decision
NVD 7cec5f2f-3032-4006-8740-31f605ffab5f (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVE List Pydantic CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVE List CISA-ADP SSVC Exploitation: none; Automatable: yes; Technical Impact: partial

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List https://pypi.org pydantic-ai-harness >= 0.4.0, <= 0.69.0

References

History

  • 25 Nov 2026 20:11 UTC · NVD: first stored (published 19 Nov 2026)
  • 25 Nov 2026 20:11 UTC · CVE List: first stored (published 19 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.