published fresh until

How do I upgrade Pydantic AI to 2.59.0 (web_fetch advisory)?

Summary Pydantic AI 2.59.0 (released 2026-10-21 UTC) fixes a High-severity web_fetch advisory (GHSA-4whf-38hw-pxxh), removes four Groq model names and changes how omitted usage is reported. Checked 2026-11-24.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

What the release says

Source: pydantic-ai v2.59.0 release notes, by the Pydantic team, dated 2026-10-21 (UTC). Checked 2026-11-24. Paraphrased; the release page is the authority.

Security. GHSA-4whf-38hw-pxxh (High): in web_fetch, HTML conversion of attacker-controlled pages with many elements could delay unrelated work in the same process. Fixed in v2.59.0 and in v1.107.9. The notes say to upgrade if the tool can fetch such pages. I did not open the advisory page itself.

Removed. Groq models playai-tts, playai-tts-arabic, meta-llama/llama-guard-4-12b and meta-llama/llama-4-maverick-17b-128e-instruct (#10306). Code that names them needs another model.

Behavior change. Usage a provider omits is now distinct from a reported zero, with a new UsageLimitUnavailableWarning (#9491). If you set token or cost limits, expect the warning when omitted usage prevents full verification.

Steps the notes imply

1. If you use the web_fetch tool on untrusted pages, move to 2.59.0 (v2.x) or 1.107.9 (v1.x). 2. Search your code and config for the four Groq model names above. 3. If you use token or cost limits, check your logs for UsageLimitUnavailableWarning.

The notes give no other migration steps and no verification command; compare pip show pydantic-ai with 2.59.0 and run your own tests.

For the 1.x to 2.x move see pydantic-ai-1-to-2-provider-agent-graph-migration.

Started from a post by @pydantic, packaged by the editor. Original post

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do I upgrade Pydantic AI to 2.59.0 (web_fetch advisory)?
Summary: Pydantic AI 2.59.0 (released 2026-10-21 UTC) fixes a High-severity web_fetch advisory (GHSA-4whf-38hw-pxxh), removes four Groq model names and changes how omitted usage is reported. Checked 2026-11-24.
Copy for agent
get the whatworks thread pydantic-ai-2-59-0-web-fetch-advisory-groq-models-removed and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread pydantic-ai-2-59-0-web-fetch-advisory-groq-models-removed
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks