MEDIUM · CVSS 3.1 5.3 EPSS 0.7% · 48th percentile CWE-1333

CVE-2026-126360: OpenTelemetry Python API: Denial of service through quadratic-time traceparent parsing

Published 2026-11-13 · Updated 2026-11-13 · Also known as GHSA-mf5v-w3w3-f6cg

Summary

The OpenTelemetry Python API is susceptible to a Regular Expression Denial of Service (ReDoS) vulnerability in its traceparent parsing logic. Users of opentelemetry-api should upgrade to version 1.45.2 or later to mitigate potential CPU exhaustion.

Who is affected

The vulnerability affects applications that parse trace context from non-HTTP carriers, such as JSON-based MCP request metadata, which may permit embedded newlines and whitespace. An attacker can exploit this by providing a specially crafted traceparent string that triggers quadratic-time regex backtracking, leading to high CPU usage and degraded service availability.

Exploitability

The vulnerability carries a CVSS 3.1 base score of 5.3, indicating a moderate impact on availability. With an EPSS score of 0.005 and no status in the CISA KEV catalog, the likelihood of active exploitation is currently considered low.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
PyPI opentelemetry-api >= 0, < 1.45.2 1.45.2 python -m pip install 'opentelemetry-api>=1.45.2'

CVSS 3.1 vector

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

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityLow

FAQ

Does this vulnerability affect standard HTTP header parsing?

No, conforming HTTP header values cannot contain the embedded newlines required to trigger this specific ReDoS attack.

Is this vulnerability exploitable for data exfiltration?

No, the research indicates the impact is limited to denial of service via CPU consumption; there is no evidence of data disclosure, modification, or arbitrary code execution.

What specifically triggers the quadratic-time complexity?

The flaw is triggered by a trace-context prefix followed by an extended sequence of whitespace and an embedded newline character, which forces excessive backtracking in the regex engine.

Original advisory description
## Summary `TraceContextTextMapPropagator.extract()` in `opentelemetry-api` is vulnerable to regular expression denial of service (ReDoS) when processing a specially crafted `traceparent` value. A malformed value containing a trace-context prefix followed by a long whitespace sequence and an embedded newline triggers quadratic-time regex backtracking. Applications that extract trace context from untrusted carriers accepting such strings can experience excessive CPU consumption and request-processing delays. When extraction runs on an asynchronous server’s event-loop thread, a single malicious message can delay unrelated requests handled by that event loop. ## Exposure conditions Exploitation requires attacker-controlled input to reach the affected propagator through a carrier that preserves embedded newlines and permits a sufficiently large value. Conforming HTTP header values cannot contain embedded newlines. However, OpenTelemetry carriers are not restricted to HTTP headers. JSON strings can contain escaped newlines that become newline characters after decoding. MCP request metadata is one relevant integration path: applications may extract trace context from JSON `params._meta`. Exposure depends on the MCP SDK or instrumentation version, whether extraction invokes the W3C Trace Context propagator, and applicable message-size limits. HTTP header validation does not constrain a `traceparent` string carried inside a JSON body. Authentication requirements depend on the application exposing the carrier. ## Impact The demonstrated impact is denial of service through excessive CPU consumption and blocked request processing. Repeated malicious messages may sustain service degradation. This finding does not demonstrate data disclosure, data modification, or code execution. ## Remediation Upgrade `opentelemetry-api` to `1.45.2` or a later release containing the fix. Version `1.45.2` rejects `traceparent` values longer than 512 characters before regex matching and removes the overlapping suffix and trailing-whitespace expressions. Where upgrading is temporarily unavailable, reject oversized values and embedded CR/LF characters before passing untrusted trace-context values to the affected propagator.

References

Source records: GHSA-mf5v-w3w3-f6cg (OSV.dev) · EPSS by FIRST, 2026-11-26.