Skip to main content
CVE-2026-133161VulnerabilityPublished

Summary ui With strip_ansi=True, Pydantic AI Harness's ToolOutputLimits capability removes ANSI escape sequences from

Source GCVE Database

0
Compare
Authoritative record:CVE-2026-133161· High 7.5

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

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (Pydantic)CVSS 3.17.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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 19 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
pydanticpydantic-ai-harnessAffected
  • >=0.4.0 <=0.69.0
Fixed in–
PyPIpydantic-ai-harnesspkg:pypi/pydantic-ai-harnessOther threatsAffected
  • >=0.4.0 <=0.69.0
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.

References

Community reviews

Loading reviews…