Skip to main content

CVE-2026-107291: CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer in pydantic pydantic-ai

0
Low
VulnerabilityCVE-2026-107291cvecve-2026-107291cwe-212cwe-532
Published: 10/08/2026 (10/08/2026, 16:22:51 UTC)
Source: CVE Database V5
Vendor/Project: pydantic
Product: pydantic-ai

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.

CVSS v4.0

Score 2.3low

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Affected software

pydantic

pydantic-ai

Affected versions
>=0.3.4 <1.107.6>=2.0.0b1 <2.44.0

pydantic

pydantic-ai-slim

Affected versions
>=0.3.4 <1.107.6>=2.0.0b1 <2.44.0
pydantic-ai
pkg:pypi/pydantic-ai
Affected versions
>=0.3.4 <1.107.6>=2.0.0b1 <2.44.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/08/2026, 16:48:52 UTC

Technical Analysis

Pydantic AI, a Python agent framework, improperly removes sensitive information before telemetry export when OpenTelemetry instrumentation is configured with InstrumentationSettings(include_content=false). Despite this setting, sensitive content such as exception.message, exception.stacktrace, error status descriptions, and model_request_parameters can be exported to the telemetry backend. This includes tool feedback, provider error bodies, runtime instructions, and structured-output templates. The vulnerability affects versions >=0.3.4 <1.107.6 and >=2.0.0b1 <2.44.0 and is resolved in versions 1.107.6 and 2.44.0. The issue does not provide new access to agent data and only impacts deployments using the include_content=false setting.

Potential Impact

Sensitive agent content may be exposed to readers of the configured telemetry backend, including exception details and runtime instructions, potentially leading to unintended data disclosure. However, this does not grant new access to agent data beyond what is already accessible through telemetry. Deployments not using include_content=false are not affected by this bypass.

Mitigation Recommendations

Upgrade to pydantic-ai versions 1.107.6 or later, or 2.44.0 or later, where this issue is fixed. If upgrading is not immediately possible, review telemetry backend access controls to limit exposure of sensitive data. Note that this vulnerability only affects deployments using OpenTelemetry instrumentation with InstrumentationSettings(include_content=false).

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-10-07T15:53:23.586Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ac7c7552cdf04f6562a0000

Added to database: 10/08/2026, 16:39:49 UTC

Last enriched: 10/08/2026, 16:48:52 UTC

Last updated: 10/08/2026, 18:06:37 UTC

Views: 8

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses