python Pydantic AI Releases · · 1.107.2

Pydantic-AI Patches Unbounded Memory Use in Downloads

sdksecurityengineermediapython-agentic
patch

Pydantic-AI v1.107.2 addresses a critical security vulnerability where unbounded memory usage during remote content downloads via `web_fetch` or `FileUrl` could crash workers. This patch introduces a default 50 MiB download cap to mitigate the risk. The fix is available in v1.107.2 and v2.24.0, targeting developers using these tools for remote content processing.

Fixes (1)
  • Bound HTTP response body sizes for web_fetch and media URL downloads by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7308
Read the original announcement →

https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.2

Related releases