CVE-2026-107291: CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer in pydantic 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
Affected software
pydantic
pydantic-ai
pydantic
pydantic-ai-slim
pkg:pypi/pydantic-aiRun 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
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).
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.