Skip to content

CVE-2026-114386 Pydantic AI Harness before 0.59.0 CodeMode Tool Call Limit Bypass via run_code

MediumCVSS 6.3 EPSS 0.35%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
pypi pydantic-ai-harness < 0.59.0 0.59.0 Fixed
pypi pydantic-ai-harness(PyPI) < 0.59.0; = 0.1.1; = 0.1.2; = 0.2.0 +45 more 0.59.0 Fixed

Affected products

ProductAffected versionsFixed in
pypi pydantic-ai-harness(PyPI) < 0.59.0 0.59.0
pypi pydantic-ai-harness(PyPI) = 0.1.1 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.1.2 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.10.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.11.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.12.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.13.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.14.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.15.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.16.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.17.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.18.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.18.1 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.2.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.2.1 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.20.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.21.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.22.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.23.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.24.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.25.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.26.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.27.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.28.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.28.1 No fix listed
Show 25 more
ProductAffected versionsFixed in
pypi pydantic-ai-harness(PyPI) = 0.29.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.29.1 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.3.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.30.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.31.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.32.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.33.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.34.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.35.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.36.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.4.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.5.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.52.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.53.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.54.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.55.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.56.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.57.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.58.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.6.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.7.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.7.1 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.8.0 No fix listed
pypi pydantic-ai-harness(PyPI) = 0.9.0 No fix listed
pypi pydantic-ai-harness < 0.59.0 0.59.0

References