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?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| pydantic-aiNiche | >= 0.3.4, < 1.107.4; >= 2.0.0b1, < 2.27.1 | 1.107.4, 2.27.1 |
| pydantic-ai-slimNiche | >= 0.3.4, < 1.107.4; >= 2.0.0b1, < 2.27.1 | 1.107.4, 2.27.1 |
What to do
Update to a fixed version: 1.107.4, 2.27.1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 0.60 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.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
- Prerequisites multiplied together0.270
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.27 × threat 0.850.689
- Rounded to one decimal between 0.1 and 100.7
Exploitation and evidence timeline
- 8 Oct 2026 Published
- 3 Dec 2026 Risk 0.7 (cvss fallback)
Weakness
CWE-212, CWE-532
References
- https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-3gh4-cghq-f8v4vendor-advisory
- https://github.com/pydantic/pydantic-ai/pull/7357misc
- https://github.com/pydantic/pydantic-ai/commit/fe9dbed7b7ccf7e7128b5786886e4441f6f5594fmisc
- https://github.com/pydantic/pydantic-ai/releases/tag/v2.27.1misc
- CVE-2026-107293 on CVE.org