CVE-2026-114386 Pydantic AI Harness before 0.59.0 CodeMode Tool Call Limit Bypass via run_code
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2026-114386?
CVE-2026-114386 is a medium-severity vulnerability in pydantic-ai-harness, published on 21 Oct 2026.
Official 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.
Weakness: CWE-770
Which versions are affected by CVE-2026-114386?
2 open source packages ship an affected version, including pydantic-ai-harness.
| Package | Affected | Fixed in |
|---|---|---|
pydantic-ai-harness PyPI | All versions | 0.59.0 |
pydantic-ai-harness PyPI | All versions | 0.59.0 |
How do I fix CVE-2026-114386?
Upgrade pydantic-ai-harness to 0.59.0 or later.
Is CVE-2026-114386 being exploited?
There is no known exploitation of CVE-2026-114386 in the wild and no public exploit code.
Sources
Also known as GHSA-3589-pxp7-3gj8.