Skip to main content
VulnerabilityPublished

CVE-2026-133161: pydantic-ai-harness · ReDoS

Affects pydantic-ai-harnessSource CVE Database V5

0
Compare

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, 15: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 inefficient regular expression issue is fixed. Until the upgrade, leave the strip_ansi option set to its default value False to avoid triggering the vulnerability. For users on Pydantic AI v1, upgrade to Pydantic AI v2 and pydantic-ai-harness 0.70.0 or keep strip_ansi disabled, as the harness cannot be upgraded beyond 0.4.0 in v1.

Description

CVE-2026-133161 is a vulnerability in pydantic-ai-harness where enabling the strip_ansi option in ToolOutputLimits causes inefficient regular expression processing. This leads to quadratic time complexity when removing ANSI escape sequences from tool output, allowing an attacker to craft large outputs that can block the event loop for extended periods. The issue affects versions 0.4.0 through 0.69.0. A fix is available in version 0.70.0 and later.

References

Community reviews

Loading reviews…