Summary ui With strip_ansi=True, Pydantic AI Harness's ToolOutputLimits capability removes ANSI escape sequences from
Source GCVE Database
Not known to be exploited · CVSS 7.5 High · fixed in 0.70.0 : patch pydantic-ai-harness soon.
Data as of 19 Nov 2026, 16:33 UTC
Thin evidence
One scorer or none| CNA (Pydantic) | CVSS 3.1 | 7.5 |
|---|
- Patch
- Available – fixed in 0.70.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 19 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 18 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| pydanticpydantic-ai-harness | Affected
| Fixed in– |
PyPIpydantic-ai-harnesspkg:pypi/pydantic-ai-harnessOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade pydantic-ai-harness to version 0.70.0 or later, where the issue is fixed. Until the upgrade, leave the strip_ansi option set to its default value, False. For users of Pydantic AI v1, which cannot upgrade past pydantic-ai-harness 0.4.0, either upgrade to Pydantic AI v2 with pydantic-ai-harness 0.70.0 or keep strip_ansi disabled.
Description
Pydantic AI Harness's ToolOutputLimits feature with strip_ansi=True removes ANSI escape sequences using a pattern that has quadratic time complexity relative to line length. An attacker can craft tool output with many unterminated escape sequences, causing the event loop to be blocked for tens of seconds to minutes, delaying other requests and agent runs. This affects applications that enable strip_ansi=True and run tools with attacker-influenced output. The issue is mitigated by upgrading to pydantic-ai-harness version 0.70.0 or later or disabling strip_ansi until the upgrade.