GHSA-4x9p-g9wm-8q7f: Pydantic AI OpenTelemetry instrumentation: exception events on tool and agent run spans include content when `include_content=False`
- Identifiers
- CVE-2026-107291GHSA-4x9p-g9wm-8q7f
- Published
- Record updated
- Affected
- pydantic-ai-slim >= 2.0.0b1, < 2.44.0, fixed in 2.44.0, released September 17, 2026, 21 days before disclosure
- pydantic-ai-slim >= 0.3.4, < 1.107.6, fixed in 1.107.6, released September 17, 2026, 21 days before disclosure
- pydantic-ai >= 2.0.0b1, < 2.44.0, fixed in 2.44.0, released September 17, 2026, 21 days before disclosure
- and 1 more
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.6%
Summary
Pydantic AI's OpenTelemetry instrumentation exports content that `include_content=False` was meant to exclude. Exception events on tool, agent run, model request, embedding, image generation and realtime session spans carry full messages and stack traces, the ERROR status description repeats the exception message, and `model_request_parameters` serializes the agent's instructions and prompted-output template. The exposure affects only whoever can read exported telemetry, which matters when traces go to a broader or less trusted backend.
Mitigation
Upgrade to a patched version. With `include_content=False`, exception events now record only the exception type, error statuses carry no description, and `model_request_parameters` is exported without its instruction content or output template. If you cannot upgrade, scrub the `exception.message` and `exception.stacktrace` event attributes, the error status description, and the instruction parts and `prompted_output_template` within
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- pydantic-aiPyPILLM dependency since 2024-05-20 · 4 tracked dependents
- pydantic-ai-slimPyPILLM dependency since 2024-11-25 · 7 tracked dependents
Related items
- MediumCVE-2026-121938: langchain4j-aideepin before 3.31.0 contains an insecure direct object reference vulnerability that allows authenticated…Similar attack · NVD/CVE Database
- InfoResidual Attribute Leakage Is an Interface: Auditing Privacy Evaluation After Text De-identificationSimilar attack · Arxiv (cs.CR + cs.CL + cs.LG)
- MediumHundreds of Mundane AI Apps Are Hiding Sexually Abusive Deepfake FeaturesSimilar attack · Wired (Security)
- MediumNew VOLTA Infostealer Uses Claude, Gemini, and Kimi AI to Rank Victims by Financial ValueSimilar attack · The Hacker News
- InfoAccessed, never disclosed: Silent access to protected health information by medical artificial intelligence agentsSimilar attack · Arxiv (cs.CR + cs.CL + cs.LG)