CVE-2026-107291 Pydantic AI OpenTelemetry instrumentation: exception events on tool and agent run spans include content when `include_content=False`
Pydantic AI leaks sensitive agent content via OpenTelemetry exception events despite include_content=False, exposing data to telemetry backend readers.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-107291?
CVE-2026-107291 is a low-severity vulnerability in pydantic-ai, published on 8 Oct 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2026-107291?
10 open source packages ship an affected version, including pydantic-ai and pydantic-ai-slim. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
pydantic-ai PyPI | From 0.3.4 | 1.107.6, 2.44.0 |
pydantic-ai PyPI | From 0.3.4 | 1.107.6 |
pydantic-ai PyPI | From 0.3.4 | 1.107.6 |
pydantic-ai PyPI | From 2.0.0b1 | 2.44.0 |
pydantic-ai PyPI | From 2.0.0b1 | 2.44.0 |
pydantic-ai-slim PyPI | From 0.3.4 | 1.107.6, 2.44.0 |
4 more packages
pydantic-ai-slim PyPI | From 0.3.4 | 1.107.6 |
pydantic-ai-slim PyPI | From 0.3.4 | 1.107.6 |
pydantic-ai-slim PyPI | From 2.0.0b1 | 2.44.0 |
pydantic-ai-slim PyPI | From 2.0.0b1 | 2.44.0 |
Products include Pydantic Pydantic Ai.
How do I fix CVE-2026-107291?
Upgrade pydantic-ai to a fixed version for your release line: 1.107.6 or 2.44.0.
Is CVE-2026-107291 being exploited?
There is no known exploitation of CVE-2026-107291 in the wild and no public exploit code.
Other vulnerabilities in pydantic-ai
- CVE-2026-25580 Pydantic AI Affected by Server-Side Request Forgery (SSRF) in URL Download Handling
- CVE-2026-107295 Pydantic AI Web chat UI (`Agent.to_web()`, `clai web`): a website visited by the developer can trigger agent runs and server-side tool execution on the local chat endpoint
- CVE-2026-107286 Pydantic AI: Concurrency-limited models can keep their slot when a streamed request ends early
- CVE-2026-25640 Pydantic AI affected by Stored XSS via Path Traversal in Web UI CDN URL
- CVE-2026-107289 Pydantic AI: SSRF cloud-metadata blocklist bypass via IPv6 zone identifiers
Sources
Also known as CLEANSTART-2026-QG98494, GHSA-4x9p-g9wm-8q7f, PYSEC-2026-4275, PYSEC-2026-4284.