- Home
- Releases
- Pydantic AI
- 2.74.0
Pydantic AI 2.74.0 release notes
Pydantic AI 2.74.0 was released on November 24, 2026. The latest version is 2.76.0.
Release notes
What's Changed
🛡️ Security
- GHSA-wm3r-gc4c-q7qg (medium, CVE-2026-136639): Pydantic AI Harness's
PlaywrightBrowserprivate-address block did not refuse IPv6 site-local addresses (fec0::/10), so on a network that still routes that range, a page or URL an attacker influences could make the browser open an internal address and return its content to the model. You are affected if you usePlaywrightBrowserwithblock_private_addresses=True, the default, to open pages an attacker can influence. Fixed inpydantic-ai-harness0.74.0. - GHSA-p2q8-3252-77c3 (medium, CVE-2026-136640):
PlaywrightBrowser's private-address block let through IPv6 addresses that embed a cloud metadata address under a network's own NAT64 prefix, and ISATAP forms of private addresses, so on such networks the browser could reach the metadata service. You are affected if you usePlaywrightBrowserwith its default address block on an IPv6 network with a NAT64 or SIIT translator that uses its own prefix. The block now refuses every IP address that Pydantic AI's URL download guard refuses. Fixed inpydantic-ai-harness0.74.0. - GHSA-g87v-g79r-whvj (medium, CVE-2026-136638):
PlaywrightBrowsertreated a URL with a backslash in its query as having no host and allowed script and asset requests with no host, so a page script could send requests to private addresses, to hosts outsideallowed_domainsand to hosts inblocked_domains. You are affected if you usePlaywrightBrowserto open pages an attacker can influence. Fixed inpydantic-ai-harness0.74.0. - GHSA-mj96-6529-3cpf (medium):
PlaywrightBrowser's egress policy did not cover WebRTC, WebTransport,WebSocketStreamor FedCM traffic, so a page could reach hosts and ports the policy refuses, and read replies overWebSocketStream, including from private addresses. You are affected if you usePlaywrightBrowserto open pages an attacker can influence. Under an enforced policy, which is the default, the patched version removes those APIs from pages and frames and launches Chromium with FedCM andWebSocketStreamoff; workers'WebTransport,WebSocketStreamin workers overcdp_url, isolated sandboxed iframes and documents loaded before attachment stay open, as the advisory lists. Fixed inpydantic-ai-harness0.74.0. - GHSA-gm2p-369w-rcgv (medium, CVE-2026-136642): With OpenTelemetry instrumentation enabled, realtime sessions on ElevenLabs Agents recorded
elevenlabs_agents_custom_llm_extra_bodyandelevenlabs_agents_dynamic_variablesin full in their trace spans, includingsecret__dynamic variables, which ElevenLabs intends for auth tokens and API keys. You are affected if you instrument realtime sessions withElevenLabsAgentsRealtimeModeland pass credentials through either setting; on 2.58.0 to 2.62.0,include_content=Falsedoes not remove them. Fixed inpydantic-aiandpydantic-ai-slim2.74.0. - GHSA-7xcv-6766-v6v5 (medium, CVE-2026-136643): Online evaluation let OpenTelemetry baggage in the current context set attributes on its
gen_ai.evaluation.resultevents that the evaluation left unset, such aserror.typeandgen_ai.evaluation.score.value, so a client sending abaggageheader could have a passing evaluation recorded with an error type, or a failed one recorded with a score. You are affected if you run online evaluation in an application whose OpenTelemetry setup extracts inbound baggage, as the default propagators do. Fixed inpydantic-evals2.74.0 and 1.107.11.
⚠️ Compatibility Notes
- Add the
computertool contract to core:pydantic_ai.computer_useandComputerToolby @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/11006- Adds
ComputerTooltoNATIVE_TOOLS_REQUIRING_CONFIG: it needs acomputertool to run its calls.
- Adds
- [cache] Send static instructions as leading
inputmessages on GPT-6.2, which never caches top-levelinstructionsby @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/14095- Continuing a GPT-6.2 response through an explicit
openai_previous_response_id='resp_…'without itsmessage_historynow inherits that response's static instructions. Pass themessage_history, orprofile=OpenAIModelProfile(openai_responses_stable_instructions_as_input=False).
- Continuing a GPT-6.2 response through an explicit
- Stop summing Gemini's running usage totals when streaming through
OpenAIChatModelby @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/14285- Streaming a
gemini*model throughOpenAIProvidernow reports the endpoint's final usage totals instead of their sum, so cost figures drop andUsageLimitstoken limits trip later.
- Streaming a
- Under an enforced egress policy (the default),
PlaywrightBrowserpages no longer haveRTCPeerConnection,WebTransport,WebSocketStreamor FedCM, and browsers it launches start with those Blink features off. If your agent needs one of them, open an issue: a parameter that keeps them can be added. (by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/14363)
🚀 Features
- Warn with
DeprecatedModelWarningon requests toclaude-opus-4-5by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/14290 - Add the
computertool contract to core:pydantic_ai.computer_useandComputerToolby @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/11006 - Harness: add the
ComputerUse()capability and theDisplayprotocols it drives by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/11037 - Add
DockerContainer(desktop=True)for computer use by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/11040 - OpenAI: send the
computertool as OpenAI's native computer tool on GPT-5.4 and later by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/11038 - Add
DaytonaSandbox(desktop=True)for computer use by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/11210 - Add
E2BSandbox(desktop=True)for computer use by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/11211 - Add
desktoptoSpritesSandboxforComputerUseby @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/12965 - Add
desktoptoBoxLiteSandboxforComputerUseby @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/12966 - Add
desktoptoBoxdSandboxforComputerUse, driven by boxd's computer API by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/12968 - Add
desktoptoSmolSandboxforComputerUseby @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/12967 - Add
desktoptoRenderSandboxforComputerUseby @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/13986 - Add
desktoptoModalSandboxforComputerUseby @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/12964 - Add
desktoptoKubernetesSandboxforComputerUseby @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/13988 - Anthropic: send the
computertool as each Claude model's computer use tool by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/11039 - Add
desktoptoOpenSandboxforComputerUseby @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/13987 - Google: send the
computertool as Google's computer use tool on Gemini by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/14307 - [cache] Send static instructions as leading
inputmessages on GPT-6.2, which never caches top-levelinstructionsby @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/14095 - Send a tool's text output to Qwen3 Next as a JSON string field with
needs_json_string_tool_returnsby @DouweM in https://github.com/pydantic/pydantic-ai/pull/12366 - Add a
CDPBrowserHarness capability that drives Chrome with raw DevTools Protocol commands by @samuelcolvin in https://github.com/pydantic/pydantic-ai/pull/14229
🐛 Bug Fixes
- Keep a custom
identifieronBinaryContentandFileUrlacrossVercelAIAdapterround trips by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/14281 - Stop summing Gemini's running usage totals when streaming through
OpenAIChatModelby @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/14285 - Classify OpenRouter context-window overflow nested in
metadata.rawasModelContextWindowExceededErrorby @pydanty in https://github.com/pydantic/pydantic-ai/pull/14231 - Keep the stored id on the user message in
AGUIAdapter.dump_messageswhen an activity message follows it by @rscholz98 in https://github.com/pydantic/pydantic-ai/pull/13161 - Return a failed reason from
ArgumentCorrectnesswhen non-object tool arguments nest too deeply to print by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/14422
Full Changelog: https://github.com/pydantic/pydantic-ai/compare/v2.73.0...v2.74.0
Source: GitHub release v2.74.0