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
Weakness typeCWE-770Allocation of resources without limits
How to fix
Update
- pydantic-ai-harness0.59.0 or later
Patches
Vendor advisories
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pydantic-ai-harnessPyPI | v < 0.59.0 | 0.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.