CVE-2026-133161: pydantic-ai-harness · ReDoS
Affects pydantic-ai-harnessSource CVE Database V5
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
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 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.