GHSA-3gh4-cghq-f8v4: Pydantic AI OpenTelemetry instrumentation: retry prompt content is not redacted when `include_content=False`
- Identifiers
- CVE-2026-107293GHSA-3gh4-cghq-f8v4
- Published
- Record updated
- Affected
- pydantic-ai-slim >= 2.0.0b1, < 2.27.1, fixed in 2.27.1, released August 10, 2026, 58 days before disclosure
- pydantic-ai-slim >= 0.3.4, < 1.107.4, fixed in 1.107.4, released August 11, 2026, 57 days before disclosure
- pydantic-ai >= 2.0.0b1, < 2.27.1, fixed in 2.27.1, released August 10, 2026, 58 days before disclosure
- and 1 more
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.3%
Summary
Pydantic AI's OpenTelemetry instrumentation records retry prompts that lack an associated tool call in full, even when `InstrumentationSettings(include_content=False)` is set. This affects structured output modes such as `NativeOutput` and `PromptedOutput`, and output validators on text output. Because validation feedback can quote invalid values from the model's response, withheld content can reach the telemetry backend, though it grants no new access to the agent or its data.
Mitigation
Upgrade to a patched version; retry prompt content now honors `include_content=False` like all other message content. If unpatched, scrub or drop the message attributes (`gen_ai.input.messages`, `gen_ai.output.messages`, `pydantic_ai.all_messages`) in your telemetry pipeline (for example with an OpenTelemetry Collector processor), or use tool-based structured output modes, whose retry feedback honors `include_content=False`.
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 · 8 tracked dependents
Related items
- InfoBeyond Single-Turn Privacy: Training-Data Leakage in Conversational RAGSimilar attack · Arxiv (cs.CR + cs.CL + cs.LG)
- LowSignal Blocks AI Agents From Reading Private Chats via Screenshots on Android and iOSSimilar attack · The Hacker News
- LowSignal is blocking Gemini and Siri AI from reading your screenSimilar attack · The Verge (AI)
- MediumWhen Shuffling Fails: Token Recovery from Obfuscated KV CachesSimilar attack · Arxiv (cs.CR + cs.CL + cs.LG)
- InfoGapLeak: When Privacy-Preserving LLM-based Web Agents Become a Privacy RiskSimilar attack · Arxiv (cs.CR + cs.CL + cs.LG)