CVE-2026-114386

published 21 Oct 2026 · updated 21 Oct 2026

Pydantic AI Harness before 0.59.0 CodeMode Tool Call Limit Bypass via run_code

4.8MediumCVSS 4.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 0.59.0.

Pydantic AI Harness before 0.59.0 fails to enforce UsageLimits.tool_calls_limit on nested tool calls dispatched from run_code in the CodeMode toolset. Users or prompt-injected content can make the sandboxed program invoke tools via run_nested_call() without check_before_tool_call, exceeding operator limits on costly or side-effecting tools.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
pydantic<0.59.00.59.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-114386 severity on Zeptric[![CVE-2026-114386](https://zeptric.io/badge/cve/CVE-2026-114386.svg)](https://zeptric.io/cve/CVE-2026-114386)