Home / pydantic / pydantic-ai-harness / CVE-2026-133161
CVE-2026-133161: is it exploited, and which versions of pydantic-ai-harness are affected and fixed?
CVE-2026-133161 is a regular expression denial of service (ReDoS) vulnerability in pydantic-ai-harness. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:38 UTC). Affected: pydantic-ai-harness from 0.4.0 through 0.69.0 (CVE record by Pydantic). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (7.5, CVSS 3.1, from Pydantic).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:38 UTC, CVE record November 19, 2026, 16:05 UTC and NVD November 23, 2026, 16:08 UTC.
What is CVE-2026-133161?
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.
From the CVE record by Pydantic, last updated November 19, 2026, 14:45 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| pydantic | pydantic-ai-harness | from 0.4.0 through 0.69.0 |
As the CVE record by Pydantic states it, last updated November 19, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-133161?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | Pydantic |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-133161 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, November 19, 2026)
- EPSS
- 0.41% probability of exploitation activity in the next 30 days, percentile 37.5 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-1333 Inefficient Regular Expression Complexity
Where are the vendor advisories and references?
Who found and reported it?
- manus-pi (reporter)
- manus-use (reporter)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- November 19, 2026
- Published
- November 19, 2026, 14:16 UTC
- CVE record updated
- November 19, 2026, 14:45 UTC by Pydantic
- NVD
- Awaiting Analysis, last modified November 23, 2026, 15:41 UTC
- Last checked
- CVE list November 19, 2026, 16:05 UTC; NVD November 23, 2026, 16:08 UTC; KEV December 3, 2026, 14:38 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect pydantic-ai-harness?
- Nov 26, 2026CVE-2026-136638 pydantic-ai-harness: interpretation Conflict
- Nov 25, 2026CVE-2026-136641 pydantic-ai-harness: server-side request forgery (SSRF)
- Oct 21, 2026CVE-2026-114386 pydantic-ai-harness: denial of service (resources allocated without limits)
Every CVE in pydantic-ai-harness
Questions about CVE-2026-133161
Is CVE-2026-133161 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:38 UTC. FIRST's EPSS gives it a 0.41% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of pydantic-ai-harness are affected by CVE-2026-133161?
pydantic-ai-harness from 0.4.0 through 0.69.0, per the CVE record by Pydantic. The tables above give every range the sources list.
Which version fixes CVE-2026-133161?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2026-133161?
High (7.5, CVSS 3.1, from Pydantic). The severity table above shows each score with its source.
Where is the official record of CVE-2026-133161?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.