Medium severity · published Oct 8, 2026
CVE-2026-107291
Pydantic AI OpenTelemetry instrumentation: exception events on tool and agent run spans include content when `include_content=False`
4.3
CVSS
0.6%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
Low
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 50% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PY
pydantic-ai · pydantic
>= 0.3.4, < 1.107.6; >= 2.0.0b1, < 2.44.0 · source: vendor
PY
pydantic-ai-slim · pydantic
>= 0.3.4, < 1.107.6; >= 2.0.0b1, < 2.44.0 · source: vendor
PA
Pydantic AI · Pydantic
0.3.4 before 1.107.4; 2.0.0 before 2.44.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-107291
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-107291
x_refsource_CONFIRM
https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-4x9p-g9wm-8q7f
x_refsource_MISC
https://github.com/pydantic/pydantic-ai/pull/8403
x_refsource_MISC
https://github.com/pydantic/pydantic-ai/pull/8404
x_refsource_MISC
https://github.com/pydantic/pydantic-ai/pull/8408
x_refsource_MISC
https://github.com/pydantic/pydantic-ai/pull/8428
x_refsource_MISC
https://github.com/pydantic/pydantic-ai/pull/8429
More from pydantic-ai
8.6
CVE-2026-25580
Pydantic AI Affected by Server-Side Request Forgery (SSRF) in URL Download Handling
7.6
CVE-2026-107295
`pydantic-ai-slim` web UI `/api/chat` accepts browser-simple cross-origin requests that can trigger agent tool execution
7.5
CVE-2026-107286
Pydantic AI: Concurrency-limited models can keep their slot when a streamed request ends early
6.8
CVE-2026-107289
Pydantic AI: SSRF cloud-metadata blocklist bypass via IPv6 zone identifier (incomplete fix for CVE-2026-46678 and CVE-2026-48782)
6.8
CVE-2026-54249
VercelAIAdapter trusts client-controlled `providerMetadata` to construct `UploadedFile` — S3/GCS confused deputy via provider metadata injection
