Findings

CVE-2026-107293

Pydantic AI OpenTelemetry instrumentation: retry prompt content is not redacted when

Published Oct 8, 2026 · updated Oct 15, 2026

### Summary Pydantic AI's OpenTelemetry instrumentation supports to exclude message content — user prompts, model completions, tool call arguments and responses — from exported telemetry, so that agents can be monitored without sending sensitive content to the observability backend. Retry prompts — the feedback messages Pydantic AI sends back to the model when its output fails validation or an output validator raises — were not covered by this setting when they were not associated with a tool call, as with structured output modes that don't use tool calls (e.g. or ) and output validators applied to text output. Their full content was recorded on model request spans even with . Since validation feedback can quote invalid values from the model's response, message content that the setting was configured to withhold could reach the telemetry backend. ### Details Retry prompts without an associated tool call were serialized into span message attributes (such as and ) as regular text parts, and this path did not apply the check that every other message part applies. Retry prompts tied to a tool call, and all other message content, were redacted correctly. ### Impact This does not grant an attacker any new access to the agent or its data: the content is only visible to whoever can read the exported telemetry. The exposure matters when traces are exported to a destination whose audience is broader or less trusted than the agent's own data — a third-party observability vendor or a shared backend — which is the scenario exists for. The disclosed content is limited to retry feedback: validation error details, which can quote invalid values from the model's output, or output-validator messages. ### Who Is Affected You are affected if you enabled instrumentation with and your agent can produce retry prompts outside of tool calls: it uses a structured output mode that doesn't rely on tool calls (such as or ), or output validators on text output. You are not affected if you don't

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Oct 8, 2026 · GitHub Advisory Database

    Detected

    ### Summary Pydantic AI's OpenTelemetry instrumentation supports to exclude message content — user prompts, model completions, tool call arguments and responses — from exported telemetry, so that agents can be monitored without sending sensitive content to the observability backend. Retry prompts — the feedback messages Pydantic AI sends back to the model when its output fails validation or an out

  2. Oct 15, 2026 · GitHub Advisory Database

    Fix available

    pydantic-ai-slim fixed in 1.107.4

  3. Oct 15, 2026 · GitHub Advisory Database

    Fix available

    pydantic-ai fixed in 1.107.4; pydantic-ai fixed in 2.27.1; pydantic-ai-slim fixed in 1.107.4; pydantic-ai-slim fixed in 2.27.1

  4. Oct 15, 2026 · GitHub Advisory Database

    Fix available

    pydantic-ai fixed in 1.107.4

  5. Oct 15, 2026 · GitHub Advisory Database

    Fix available

    pydantic-ai fixed in 2.27.1

  6. Oct 15, 2026 · GitHub Advisory Database

    Fix available

    pydantic-ai-slim fixed in 1.107.4

  7. Oct 15, 2026 · GitHub Advisory Database

    Fix available

    pydantic-ai-slim fixed in 2.27.1

  8. Oct 15, 2026 · GitHub Advisory Database

    Fix available

    pydantic-ai fixed in 1.107.4

  9. Oct 15, 2026 · GitHub Advisory Database

    Updated

    ### Summary Pydantic AI's OpenTelemetry instrumentation supports to exclude message content — user prompts, model completions, tool call arguments and responses — from exported telemetry, so that agents can be monitored without sending sensitive content to the observability backend. Retry prompts — the feedback messages Pydantic AI sends back to the model when its output fails validation or an out

Affected

  • PyPI pydantic-ai0.3.4 → 1.107.4
  • PyPI pydantic-ai2.0.0b1 → 2.27.1
  • PyPI pydantic-ai-slim0.3.4 → 1.107.4
  • PyPI pydantic-ai-slim2.0.0b1 → 2.27.1

Sources

  • CVE.orgVulnerability recordCVE-2026-107293

    Official CVE identifier

    cve.org
  • GitHub Advisory DatabasePackage advisoryGHSA-3gh4-cghq-f8v4

    GitHub Advisory Database record mirrored by OSV.

    github.com
  • OSV.devPackage advisoryGHSA-3gh4-cghq-f8v4

    Pydantic AI OpenTelemetry instrumentation: retry prompt content is not redacted when

    osv.dev
  • OSV.devPackage advisoryPYSEC-2026-4274

    Pydantic AI OpenTelemetry instrumentation: retry prompt content is not redacted when

    osv.dev
  • OSV.devPackage advisoryPYSEC-2026-4283

    Pydantic AI OpenTelemetry instrumentation: retry prompt content is not redacted when

    osv.dev

References