Skip to content
LowVulnerabilityLLM-specific

GHSA-3gh4-cghq-f8v4: Pydantic AI OpenTelemetry instrumentation: retry prompt content is not redacted when `include_content=False`

Published
Record updated
View JSON
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`.