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

Low 2.3 Published Updated

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.

Weakness: CWE-532, CWE-212

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.

PackageAffectedFixed in
pydantic-ai PyPIFrom 0.3.41.107.6, 2.44.0
pydantic-ai PyPIFrom 0.3.41.107.6
pydantic-ai PyPIFrom 0.3.41.107.6
pydantic-ai PyPIFrom 2.0.0b12.44.0
pydantic-ai PyPIFrom 2.0.0b12.44.0
pydantic-ai-slim PyPIFrom 0.3.41.107.6, 2.44.0
4 more packages
pydantic-ai-slim PyPIFrom 0.3.41.107.6
pydantic-ai-slim PyPIFrom 0.3.41.107.6
pydantic-ai-slim PyPIFrom 2.0.0b12.44.0
pydantic-ai-slim PyPIFrom 2.0.0b12.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.

Sources

Also known as CLEANSTART-2026-QG98494, GHSA-4x9p-g9wm-8q7f, PYSEC-2026-4275, PYSEC-2026-4284.

Is CVE-2026-107291 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free