Pydantic-AI v1.107.4 Addresses High-Severity Web UI Vulnerability
Pydantic-AI v1.107.4 has been released, providing important security and bug fixes for the v1 line. This update resolves a high-severity vulnerability (GHSA-h4xc-3qfq-jf93) in the development web chat UI that could allow cross-origin requests to execute agent tools with local privileges. The fix mandates `Content-Type: application/json` for the chat endpoint and also addresses a low-severity issue where retry-prompt content was not always redacted. These security patches are also available in recent v2 releases, ensuring broader protection for users.
- →Backport #7357 to v1 by @DouweM in https://github.com/pydantic/pydantic-ai/pull/7381
- →Only accept JSON request bodies on the web UI chat endpoint (v1 backport) by @DouweM in https://github.com/pydantic/pydantic-ai/pull/7383
Security (2) ›
GHSA-h4xc-3qfq-jf93 (high) — the development web chat UI's (Agent.to_web(), clai web) chat endpoint didn't check the request's content type, so a plain cross-origin request from a website open in the developer's browser could reach it without a CORS preflight and trigger the served agent to run and execute its tools with the local process's privileges and credentials. The endpoint now requires Content-Type: application/json
GHSA-3gh4-cghq-f8v4 (low) — retry-prompt content wasn't redacted by InstrumentationSettings(include_content=False) when the retry wasn't tied to a tool call
Fixes (2) ›
- Backport #7357 to v1 by @DouweM in https://github.com/pydantic/pydantic-ai/pull/7381
- Only accept JSON request bodies on the web UI chat endpoint (v1 backport) by @DouweM in https://github.com/pydantic/pydantic-ai/pull/7383
https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.4
Related releases
- Pydantic-AI v2.29.0 Adds Azure AI Voice Live Support and FastMCP 4 Pydantic AI Releases ·
- Pydantic AI v1.107.3 Patches High-Severity Web Chat UI Vulnerability Pydantic AI Releases ·
- Pydantic-AI v2.28.0 Patches High-Severity Security Flaw, Adds Realtime Speech-to-Speech Pydantic AI Releases ·
- crewAI 1.15.15 Release Adds AI Flow Reporting, Fixes Bugs CrewAI Releases ·
- LangGraph 1.2.11 Adds Trace Policy to Nodes, Updates Checkpoints LangGraph Releases ·
- OpenAI Agents Python SDK v0.20.0 Updates Default Model & Improves Capabilities OpenAI Agents SDK (Python) Releases ·