GHSA-3589-pxp7-3gj8

Suggest an improvement
Source
https://github.com/advisories/GHSA-3589-pxp7-3gj8
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-3589-pxp7-3gj8/GHSA-3589-pxp7-3gj8.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3589-pxp7-3gj8
Aliases
Published
2026-10-21T15:42:26Z
Modified
2026-10-23T21:00:05Z
Severity
  • 4.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L CVSS Calculator
  • 6.3 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X CVSS Calculator
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.

Database specific
{
    "cwe_ids":  [
        "CWE-770"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-10-23T20:55:50Z",
    "nvd_published_at":  "2026-10-21T13:18:28Z",
    "severity":  "MODERATE"
}
References

Affected packages

PyPI / pydantic-ai-harness

Package

Name
pydantic-ai-harness
View open source insights on deps.dev
Purl
pkg:pypi/pydantic-ai-harness

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.59.0

Affected versions

0.*
0.1.1
0.1.2
0.2.0
0.2.1
0.3.0
0.4.0
0.5.0
0.6.0
0.7.0
0.7.1
0.8.0
0.9.0
0.10.0
0.11.0
0.12.0
0.13.0
0.14.0
0.15.0
0.16.0
0.17.0
0.18.0
0.18.1
0.20.0
0.21.0
0.22.0
0.23.0
0.24.0
0.25.0
0.26.0
0.27.0
0.28.0
0.28.1
0.29.0
0.29.1
0.30.0
0.31.0
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.52.0
0.53.0
0.54.0
0.55.0
0.56.0
0.57.0
0.58.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-3589-pxp7-3gj8/GHSA-3589-pxp7-3gj8.json"