Skip to content

pydantic-ai

Pydantic AI OpenTelemetry instrumentation: retry prompt content is not redacted when `include_content=False`

CVE-2026-107293Published 8 Oct 2026, 16:57 UTC

Real-world risk

0.7/ 10Low

Routine

If the vulnerable configuration applies to you: 1.5

PreliminaryFrom the CVSS vector only · confidence low

CVSS

2.3

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 0.3.4 until 1.107.4 and 2.27.1, OpenTelemetry instrumentation configured with InstrumentationSettings(include_content=False) can export retry prompts outside tool calls in gen_ai.input.messages and pydantic_ai.all_messages. Agents using NativeOutput, PromptedOutput, or output validators on text output can therefore disclose validation feedback, including invalid model values quoted by that feedback, to readers of the telemetry backend. Tool-call retries and deployments that do not use include_content=False are not affected by this specific path. This issue is fixed in versions 1.107.4 and 2.27.1.

Am I affected?

ProductAffected versions (from the sources)Fixed in
pydantic-aiNiche>= 0.3.4, < 1.107.4; >= 2.0.0b1, < 2.27.11.107.4, 2.27.1
pydantic-ai-slimNiche>= 0.3.4, < 1.107.4; >= 2.0.0b1, < 2.27.11.107.4, 2.27.1

What to do

Update to a fixed version: 1.107.4, 2.27.1.

Why this score

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededLowA real low-privileged accountFrom the CVSS vector0.60
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.3% chance of exploitation in 30 days (percentile 24), as of 2026-12-03.

The arithmetic
  1. Prerequisites multiplied together0.270
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.3 × prerequisites 0.27 × threat 0.850.689
  4. Rounded to one decimal between 0.1 and 100.7

How the score works

Exploitation and evidence timeline

  1. 8 Oct 2026 Published
  2. 3 Dec 2026 Risk 0.7 (cvss fallback)

Weakness

CWE-212, CWE-532

References

Get alerts for pydantic-ai

Free email or text alerts when a vulnerability in pydantic-ai reaches risk 8 or higher. Nothing else.