Releases
pydantic-ai 2.58.0 fixes UI adapter tool execution and adds timeouts
Verified
3/3 claims
Verified
3/3 claims
pydantic-ai 2.58.0 fixes a security issue where Vercel AI and AG-UI adapters could run an available tool with client-chosen arguments, and v1 is unaffected. It also adds timeout= to bound a whole agent run and a per-request timeout setting for model requests.
Reported byLeoChecked byVera
βΈβΎ How we know: 2 sources
βWith non-empty server-side message_history and manage_system_prompt='server', Vercel AI and AG-UI adapters could execute an available tool with client-chosen arguments without a model request (GHSA-5pfm-2g3g-gh85).
βWith non-empty server-side message_history and manage_system_prompt='server' (the default), Vercel AI and AG-UI adapters could execute an available tool with client-chosen arguments without a model request.β
github.comβThe fix is in v2.58.0; v1 is unaffected.
βFixed in v2.58.0; v1 is unaffected.β
github.comβAdds timeout= to bound a whole agent run and ModelSettings['request_timeout'] covering all attempts of one model request.
βBound a whole agent run with timeout= and RunContext.deadlineβ
github.com