CVE-2026-133161: Regular Expression DoS
Published 2026-11-19 · Updated 2026-11-23 · Source 7cec5f2f-3032-4006-8740-31f605ffab5f
Not known to be exploited · high severity — update to 0.13.0 or later in your next patch cycle.
What to do
- Update the affected product to version 0.13.0 or later. Versions before 0.13.0 are affected.
- Until it is patched, do not leave the affected product reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
- Limit input length and apply request timeouts in front of the affected service.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Affected product | < 0.13.0 | 0.13.0 |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker does not need an account, and no action by a victim is required. Attack complexity is low, so a working exploit is expected to be reliable. The impact on availability is rated high.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | Low | No special conditions are needed; the attack is repeatable. |
| Privileges required | None | The attacker does not need an account. |
| User interaction | None | No action by a victim is needed. |
| Confidentiality | None | No effect on confidentiality. |
| Integrity | None | No effect on integrity. |
| Availability | High | Total loss of availability. |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: Regular Expression DoS
Crafted input makes a regular expression take excessive time, tying up the service.
Classified as CWE-1333.
Description
### 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.
Advisory text as published in the NVD record.