Pydantic AI fixes vulnerability where retry prompts were not redacted in OpenTelemetry telemetry.
Pydantic AI OpenTelemetry instrumentation: retry prompt content is not redacted when `include_content=False`
In Pydantic AI's OpenTelemetry instrumentation, when include_content=False is set, retry prompts not associated with tool calls are still fully recorded on the model request span, causing message content that should be hidden to potentially enter the telemetry backend. This issue affects Agents using structured output modes that do not rely on tool calls (such as NativeOutput, PromptedOutput) or enabling output validators for text output; retries from tool calls and other message content are properly redacted. The vulnerability does not give attackers new access to the Agent or its data; the risk lies in trace data being exported to third-party observability services or shared backends with a broader audience or lower trust. The issue was privately reported by a security research team at the University of Sydney, and later independently discovered and publicly reported and fixed by @sean-kim05.
A missing path in Pydantic AI's telemetry redaction settings is disclosed. Teams using this framework and exporting trace data can use this to check their own configurations and historical data.