Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pydantic-ai
  4. ›
  5. CVE-2026-107293

CVE-2026-107293: Pydantic AI OpenTelemetry instrumentation: retry prompt content is not redacted when `include_content=False`

October 8, 2026

Pydantic AI’s OpenTelemetry instrumentation supports InstrumentationSettings(include_content=False) to exclude message content — user prompts, model completions, tool call arguments and responses — from exported telemetry, so that agents can be monitored without sending sensitive content to the observability backend.

Retry prompts — the feedback messages Pydantic AI sends back to the model when its output fails validation or an output validator raises ModelRetry — were not covered by this setting when they were not associated with a tool call, as with structured output modes that don’t use tool calls (e.g. NativeOutput or PromptedOutput) and output validators applied to text output. Their full content was recorded on model request spans even with include_content=False. Since validation feedback can quote invalid values from the model’s response, message content that the setting was configured to withhold could reach the telemetry backend.

References

  • github.com/advisories/GHSA-3gh4-cghq-f8v4
  • github.com/pydantic/pydantic-ai/commit/fe9dbed7b7ccf7e7128b5786886e4441f6f5594f
  • github.com/pydantic/pydantic-ai/pull/7357
  • github.com/pydantic/pydantic-ai/releases/tag/v2.27.1
  • github.com/pydantic/pydantic-ai/security/advisories/GHSA-3gh4-cghq-f8v4
  • nvd.nist.gov/vuln/detail/CVE-2026-107293

Code Behaviors & Features

Detect and mitigate CVE-2026-107293 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.3.4 before 1.107.4, all versions starting from 2.0.0-b.1 before 2.27.1

Fixed versions

  • 1.107.4
  • 2.27.1

Solution

Upgrade to versions 1.107.4, 2.27.1 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer
  • CWE-532: Insertion of Sensitive Information into Log File

Source file

pypi/pydantic-ai/CVE-2026-107293.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:11 +0000.