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?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| pydantic-aiNiche | >= 0.3.4, < 1.107.6; >= 2.0.0b1, < 2.44.0 | 1.107.6, 2.44.0 |
| pydantic-ai-slimNiche | >= 0.3.4, < 1.107.6; >= 2.0.0b1, < 2.44.0 | 1.107.6, 2.44.0 |
What to do
Update to a fixed version: 1.107.6, 2.44.0.
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.5% chance of exploitation in 30 days (percentile 46), 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-4x9p-g9wm-8q7fvendor-advisory
- https://github.com/pydantic/pydantic-ai/pull/8403misc
- https://github.com/pydantic/pydantic-ai/pull/8404misc
- https://github.com/pydantic/pydantic-ai/pull/8408misc
- https://github.com/pydantic/pydantic-ai/pull/8428misc
- https://github.com/pydantic/pydantic-ai/pull/8429misc
- https://github.com/pydantic/pydantic-ai/commit/4e013c51a50659aba2adf7853bfb22bb77f6a518misc
- https://github.com/pydantic/pydantic-ai/commit/6b14c74cb281f899a2ae4fae5327111e33f60771misc
- https://github.com/pydantic/pydantic-ai/commit/7ee27e38ab2e525ca60ff1a25d16413ff989fd79misc
- https://github.com/pydantic/pydantic-ai/commit/963dec5f70d6f558997fc259356c0090cc5ea487misc
- https://github.com/pydantic/pydantic-ai/commit/de4e61515327bd80a19cd8552001c30933e6acc3misc
- https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.6misc
- https://github.com/pydantic/pydantic-ai/releases/tag/v2.44.0misc
- CVE-2026-107291 on CVE.org