cve.bz

CVE-2026-107291 pydantic pydantic ai

2.3 lowExploit referenceEPSS 0.6%Fix available

Low (2.3) in pydantic pydantic ai. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in pydantic-ai 1.107.6, 2.44.0.

On this page
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.

Severity

CVSS 4.0

2.3 low
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

CVSS 3.1

4.3 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
EPSS
0.6% (unchanged from 0.6% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 50th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-212 Improper Removal of Sensitive Information Before Storage or Transfer
CWE-532 Insertion of Sensitive Information into Log File
OWASP Top 10
A09:2025 Logging & Alerting Failures
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-107291 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-107291?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-107291?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-107291 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
pydantic:pydantic_aifrom 0.3.4 before 1.107.4
pydantic:pydantic_aifrom 2.0.0 before 2.44.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4x9p-g9wm-8q7fPyPIpydantic-ai>=0.3.4 <1.107.61.107.6
GHSA-4x9p-g9wm-8q7fPyPIpydantic-ai>=2.0.0b1 <2.44.02.44.0
GHSA-4x9p-g9wm-8q7fPyPIpydantic-ai-slim>=0.3.4 <1.107.61.107.6
GHSA-4x9p-g9wm-8q7fPyPIpydantic-ai-slim>=2.0.0b1 <2.44.02.44.0
PYSEC-2026-4275PyPIpydantic-ai>=0.3.4 <1.107.6
>=2.0.0b1 <2.44.0
1.107.6, 2.44.0
PYSEC-2026-4284PyPIpydantic-ai-slim>=0.3.4 <1.107.6
>=2.0.0b1 <2.44.0
1.107.6, 2.44.0

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A moderate information disclosure flaw was found in the Pydantic AI agent framework, which is shipped in Red Hat Enterprise Linux AI and Lightspeed Core products. When Pydantic AI's OpenTelemetry instrumentation is configured with InstrumentationSettings(include_content=False) to exclude sensitive message content from exported telemetry, several other parts of the same spans are not redacted: exception events record full exception messages and stack traces (including tool retry feedback that can quote tool arguments and results, and provider error response bodies), span error status descriptions repeat the exception message, and the model_request_parameters attribute serializes the agent's runtime instructions and the prompted structured-output template. Anyone with read access to the configured telemetry backend, such as a third-party observability vendor or a shared backend whose audience is broader than the agent's own data, can read this confidential agent content. The flaw does not grant any new access to the agent or its data beyond visibility of the exported traces, and deployments that do not enable include_content=False are not affected; instructions are exported on every successful run, while the exception paths additionally require a tool to raise or a model, embedding, or image generation request to fail. Red Hat rates this flaw as moderate severity (CVSS 3.1 score 4.3), whereas the upstream advisory rates it low severity (CVSS 4.0 score 2.3); this difference reflects Red Hat's assessment of the confidentiality impact on products that ship the affected package. For the affected Red Hat Enterprise Linux AI and Lightspeed Core components, the fix is currently deferred because the impact is moderate and the CVSS score is below 7.0, which does not meet the bar for prioritizing an update for this issue. The residual risk of deferring is that sensitive agent content continues to be exported to, and readable by readers of, telemetry backends populated by affected deployments that use include_content=False.

Red Hat's mitigation

A workaround is available for deployments that cannot upgrade immediately: in the telemetry pipeline, scrub the exception.message and exception.stacktrace event attributes, the error status description, and the instruction parts and prompted_output_template within model_request_parameters on spans emitted by Pydantic AI, for example with an OpenTelemetry Collector processor. Setting include_model_request_parameters=False alongside include_content=False also stops the export of the instructions and the output template, at the cost of the rest of that attribute. Deployments that rely on include_content=False should additionally review previously exported traces for exception events, error status descriptions, and model_request_parameters. The issue is fixed upstream in pydantic-ai 1.107.6 (1.x series) and 2.44.0 (2.x series); in the fixed versions, with include_content=False, exception events record only the exception type, error statuses carry no description, and model_request_parameters is exported without instruction content or the output template.

ProductPackageStateAdvisory
Lightspeed Corelightspeed-core/lightspeed-stack-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-cuda-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-gaudi-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-rocm-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/disk-image-cuda-rhel9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-107291.

Attack patterns (CAPEC)

  • CAPEC-168 Windows ::DATA Alternate Data Stream Severity: Medium
  • CAPEC-215 Fuzzing for application mapping Likelihood: High · Severity: Low

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON