Skip to content

pydantic-ai

Pydantic AI OpenTelemetry instrumentation: exception events on tool and agent run spans include content when `include_content=False`

CVE-2026-107291Published 8 Oct 2026, 16:22 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.6 and 2.44.0, OpenTelemetry instrumentation configured with InstrumentationSettings(include_content=False) can still export sensitive agent content through exception.message and exception.stacktrace events, error status descriptions, and model_request_parameters containing instructions or the prompted_output_template. The exposed data is available to readers of the configured telemetry backend and can include tool feedback, provider error bodies, runtime instructions, and structured-output templates even though message attributes are redacted. This issue does not grant new access to agent data, and deployments that do not use include_content=False are not affected by the setting bypass. This issue is fixed in versions 1.107.6 and 2.44.0.

Am I affected?

ProductAffected versions (from the sources)Fixed in
pydantic-aiNiche>= 0.3.4, < 1.107.6; >= 2.0.0b1, < 2.44.01.107.6, 2.44.0
pydantic-ai-slimNiche>= 0.3.4, < 1.107.6; >= 2.0.0b1, < 2.44.01.107.6, 2.44.0

What to do

Update to a fixed version: 1.107.6, 2.44.0.

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.5% chance of exploitation in 30 days (percentile 46), 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.