Skip to content

pydantic-ai-harness

Pydantic AI Harness before 0.59.0 CodeMode Tool Call Limit Bypass via run_code

CVE-2026-114386Published 21 Oct 2026, 12:39 UTC

Real-world risk

1.1/ 10Low

Routine

If the vulnerable configuration applies to you: 2.6

PreliminaryFrom the CVSS vector only · confidence low

CVSS

6.3

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from VulnCheck)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
pydantic-ai-harnessNiche< 0.59.00.59.0

What to do

Update to a fixed version: 0.59.0.

Why this score

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.3% chance of exploitation in 30 days (percentile 30), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.450
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.3 × prerequisites 0.45 × threat 0.851.147
  4. Rounded to one decimal between 0.1 and 101.1

How the score works

Exploitation and evidence timeline

  1. 21 Oct 2026 Published
  2. 3 Dec 2026 Risk 1.1 (cvss fallback)

Weakness

CWE-770

References

Get alerts for pydantic-ai-harness

Free email or text alerts when a vulnerability in pydantic-ai-harness reaches risk 8 or higher. Nothing else.