Advisory

GHSA-3589-pxp7-3gj8

Also known as: CVE-2026-114386

Summary

Pydantic AI Harness tool-call limit bypass in nested CodeMode calls

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-10-21 15:42 UTC
Modified
2026-10-23 21:00 UTC

Affected packages and fixes

pydantic-ai-harness

PyPI · All systems

Affected

  • introduced 0, fixed 0.59.0 (ecosystem)

Fixed versions

0.59.0

Fix

  • Fixed version 0.59.0
    pip install --upgrade pydantic-ai-harness==0.59.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences