CVE-2026-142788
Pydantic AI MCP identifiers could expose URL secrets to frontend clients
Pydantic · pydantic-ai, pydantic-ai-slim
First documented disclosure · Review checkpoint
Summary
A frontend client can learn URL-derived credentials or identifiers.
Severity and exploitation evidence
Medium · 6.5/10 · CVSS 3.1. Severity source.
Exploitation not established: The original advisory establishes the weakness and controlled analysis; malicious exploitation or victim compromise is not established.
Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.
How the weakness works
Local MCP identifiers derived from the server URL's hostname and final path segment are sent to frontend clients in MCP Apps tool events and retained in adapter-dumped message history.
Conditions required
A v2 application runs a local MCP capability with a credential in the server URL's final path segment, no explicit safe ID, and a server exposing MCP Apps tools. An authenticated frontend user receives AG-UI or Vercel AI SDK output when the model calls an MCP Apps tool.
Potential impact
A frontend client can learn URL-derived credentials or identifiers.
Affected versions and configurations
pydantic-ai: >= 2.57.0, < 2.60.0; pydantic-ai-slim: >= 2.57.0, < 2.60.0
Fix and mitigation status
pydantic-ai: 2.60.0; pydantic-ai-slim: 2.60.0
Practical next steps
Upgrade to 2.60.0, set a safe explicit ID and rotate exposed credentials; drain durable workflows before changing activity IDs.
Operating lesson
Apply confidentiality, resource and authority checks at the final representation that crosses the trust boundary.
Evidence and limits
The original GHSA publication predates its December 3 CVE identity update. The current published GHSA explicitly supplies the CVE. Fresh CVE Program raw and API lookups returned no record; this does not establish RESERVED status or a CVE publication date. Plain MCPToolset and v1 are unaffected. The 2.58.0 telemetry patch does not fix this frontend path. CVSS 3.1 6.5 is the maintainer advisory assessment.
Sources
- Original Pydantic maintainer advisory
Primary source ·