CVE-2026-133161
Last modified
CVE-2026-133161 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. ### 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. EPSS estimates a 0.41% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| pydantic | pydantic-ai-harness | >= 0.4.0, <= 0.69.0 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-133161?
How severe is CVE-2026-133161?
How do I fix CVE-2026-133161?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-13312A vulnerability that could allow an attacker to compromise a…9.9
- CVE-2026-133120@fastify/express is a compatibility layer that lets Express …9.1
- CVE-2026-13313An Active Debug Code vulnerability in certain ASUS router mo…8.9
- CVE-2026-13314Malicious HTML content could be injected into the content re…2
- CVE-2026-133157flowintel contains a CSV injection vulnerability in its audi…5.1
- CVE-2026-13316A flaw has been found in foreman when HTTP parameters are mo…4.4
- CVE-2026-133163MISP contains an authorization bypass affecting the event pr…5.3
- CVE-2026-133165MISP contains an authorization and scope flaw in the ObjectR…5.3
- CVE-2026-133167OFFIS DCMTK 3.5.4 through 3.7.1 contains an integer overflow…5.5
- CVE-2026-133168OFFIS DCMTK 3.7.1 contains a heap buffer overflow vulnerabil…7.8
- CVE-2026-133169modified eCommerce Shopsoftware through 3.3.0 contains a sto…4.8
- CVE-2026-133170Tiptap @tiptap/core 2.0.0-alpha.0 before 3.30.4 contains a c…4.7
Are you affected by CVE-2026-133161?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
