CVE-2026-136643: pydantic-evals Use of Less Trusted Source

CVE-2026-136643

NVD

Vulnerability Summary

Summary Online evaluation in `pydantic-evals` emits one `gen_ai.evaluation.result` event per evaluation result or failure. OpenTelemetry baggage in the current context could set attributes on those events that the evaluation itself leaves unset, including `error.type`, `gen_ai.evaluation.score.value` and `gen_ai.evaluation.explanation`. In an application whose server extracts inbound baggage, a client sending a W3C `baggage` header could therefore have a passing evaluation recorded with an error type, or a failed evaluation recorded with a score. Details Assumed attacker: any client that can send a request handled by a function under online evaluation, in an application whose OpenTelemetry setup extracts inbound baggage. The default `tracecontext,baggage` propagators do. The attacker needs no access beyond what the application's endpoint requires, and affects only the evaluation events produced for their own requests. Two paths carry the baggage onto the events: - `pydantic-evals` copies the baggage itself when `include_baggage` is on, which is the default. An evaluation's own attribute replaced a baggage entry only when the evaluation set that attribute. - With `logfire` 6, when `logfire.configure`'s `add_baggage_to_attributes` is on, which is the default, Logfire copies the baggage onto the events whatever `include_baggage` is set to. On `pydantic-evals` 2.x this includes keys in the `logfire.scorer.` namespace, which `pydantic-evals` reserves and drops from baggage. The documentation describes these attributes as coming from the evaluation, says `error.type` is absent on successful evaluations, and says baggage keys in the `logfire.scorer.` namespace are dropped. Dashboards, alerts or analyses that count failures or aggregate scores from these events can be skewed. Attributes the evaluation sets are not overwritten. Mitigation Upgrade to a patched version. Until then, remove the `baggage` header from inbound requests at the application's edge, or turn off both copies: set `include_baggage=False` (`pydantic_evals.online.configure(include_baggage=False)`), and with `logfire` 6 also pass `add_baggage_to_attributes=False` to `logfire.configure`. With `logfire` 6, either setting alone is not enough.
Severity Level
MEDIUM(5.3)
Published Date
Nov 25, 2026
Last Modified
Nov 25, 2026
Exploitation Status
No confirmed exploitation yet
CVE Record Status
Reserved
This CVE ID is referenced in a public advisory, but the CVE Program has not published its official CVE Record yet. Full CVSS/CPE data from NVD will appear here once it does.
Root Weakness (CWE)
The product has two different sources of the same data or information, but it uses the source that has less support for verification, is less trusted, or is less resistant to attack.
CVSS v3.1 Base Metrics — Score 5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityNone
IntegrityLow
AvailabilityNone

Affected & Patched Versions

Affected Versions
  • pydantic-evals >= 1.85.0, <= 1.107.10
  • pydantic-evals >= 2.0.0b1, <= 2.73.0
Patched Versions
  • pydantic-evals 1.107.11
  • pydantic-evals 2.74.0

What to do

Fix it during your normal patch cycle. No exploitation is confirmed yet.

  1. Check whether you run pydantic-evals and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Nov 25, 2026Published
  • Nov 25, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new pydantic-evals CVEsYou are reading CVE-2026-136643. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Nov 30, 2026 08:01 UTC