CVE-2026-114386

Medium

Description

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.

SeverityMedium
CVSS4.8
Exploit probability—
ProductPydantic-ai-harness
PublishedOct 21, 2026
First seenOct 21, 2026

How to fix

Affected products

ProductAffected versionsFixed in
pydantic-ai-harnessPyPIv < 0.59.00.59.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.