CVE Professor
›
Back
CVE-2026-133161

CVE-2026-133161 — Pydantic Pydantic-ai-harness (0.69.0) — CWE-1333

HIGH CVSS 7.5 NVD+CVE.org

CVE-2026-133161 is a HIGH severity security vulnerability (CWE-1333) (CVSS 7.5/10) affecting Pydantic Pydantic-ai-harness (0.69.0). Technical vector analysis shows that an attacker can exploit this flaw remotely over the network without authentication (PR:N) with zero user interaction (UI:N), causing high-impact service disruption (A:H).

📄 Official NVD / MITRE Original Record Text

### 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.

Published 19.11.2026
ISO Date 2026-11-19
CVSS Version v3.1
Source NVD+CVE.org
CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality None C:N
Integrity None I:N
Availability High A:H
AI Security Analysis & Remediation
🤖 Generating Deep AI Security Analysis…
Analyzing CVSS vector & CWE weakness structure…

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-133161
CVSS 7.5/10 · HIGH · 19.11.2026
CWE: CWE-1333
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Summary: ### 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 …
Affected: pydantic:pydantic-ai-harness

⚡ ATTACK CHAIN
Remotely over internet | no authentication required | no user interaction | low complexity.

🌍 REAL WORLD IMPACT
Service can be completely taken down.

🛡️ REMEDIATION
→ Apply vendor security update for pydantic:pydantic-ai-harness.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
⚠️ This week (7 days) — High risk, anonymous remote.

────────────────────────────────────────
[Kural Tabanlı Otomatik Güvenlik Analizi]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="pydantic pydantic-ai-harness"
CVSS Score
7.5 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-1333
Affected Products (1)
pydantic:pydantic-ai-harness (0.69.0)
References & Advisories (1)
Related CVEs
5.3
CVE-2026-133171
Tiptap @tiptap/core 3.7.0 before 3.30.5 contains a regular expression denial of service vulnerability in parse
0.0
CVE-2026-120404
The built-in regular expression name finder for latitude and longitude coordinates uses a pattern that is vuln
4.3
CVE-2026-131922
In OpenStack keystonemiddleware before 13.0.3, by supplying a malicious regular expression when creating an ap
3.3
CVE-2026-127095
A flaw was found in ansible-builder. The regular expression used to strip comments from a collection's require
3.3
CVE-2026-127096
A flaw was found in the Ansible language server shipped with the vscode-ansible extension. The regular express
8.7
CVE-2026-121707
Effect is a TypeScript framework that consists of several packages that work together to help build TypeScript