Insertion of Sensitive Information into Log File Affecting pydantic-ai package, versions [0.3.4,1.107.4)[2.0.0b1,2.27.1)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.34% (25th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-PYDANTICAI-20583871
  • published8 Oct 2026
  • disclosed8 Oct 2026
  • creditmauriceng98, sean-kim05

Introduced: 8 Oct 2026

NewCVE-2026-107293  (opens in a new tab)
CWE-212  (opens in a new tab)
CWE-532  (opens in a new tab)

How to fix?

Upgrade pydantic-ai to version 1.107.4, 2.27.1 or higher.

Overview

pydantic-ai is an AI Agent Framework, the Pydantic way

Affected versions of this package are vulnerable to Insertion of Sensitive Information into Log File via the otel_message_parts method in messages.py, where RetryPromptPart content is included in OpenTelemetry traces regardless of the include_content instrumentation setting. An authenticated attacker with access to the telemetry/tracing backend can read message content that was intended to be suppressed by the include_content flag.

CVSS Base Scores

version 4.0
version 3.1