Case Files
P1Security vulnerabilityPydantic AI

Early Found a Credential Leak. Pydantic Shipped the Fix.

The leak

Access tokens for connected services were written into tracing data in clear text, even with the privacy setting on. Anyone with dashboard access could read them.

The outcome

Early created a fix with a test and reported the issue privately. Pydantic confirmed it and shipped its own broader fix.

Step 1

Find the defect

Early flagged a year-old credential leak while analyzing newer changes. It was the top finding of the run.

The Early finding MCP tokens exported in span attribute, with confidence 8 of 10, P1, Security, and a link to Fix PR 1

Step 2

Fix and test

Early created a Fix PR with a test. It was closed on purpose so the issue could be disclosed privately first.

Early's Fix PR 1 on GitHub, Redact MCPServerTool credentials from model_request_parameters spans, closed, with 2 files changed

Step 3

Disclosed privately, fixed upstream

Pydantic confirmed the issue, published an advisory crediting the report, and released fixed versions.

Published GitHub advisory GHSA-xv4x-g8mx-ch56, Moderate severity, with patched versions 1.107.8 and 2.58.0

Primary evidence

Follow the evidence.

Explore more