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
- Upgrade the opentelemetry-api package to version 1.45.2 or later.
- Implement input validation to reject trace-context values exceeding 512 characters or containing embedded CR/LF characters before passing them to the propagator.
How to check your project
- Check the installed version of the opentelemetry-api package via pip list or by inspecting the project's requirements.txt or poetry.lock files.
- Verify if the application extracts trace context from non-HTTP sources that permit embedded newlines, such as JSON-encoded request metadata.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| 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 vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | None |
| Availability | Low |
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
References
- WEB https://github.com/open-telemetry/opentelemetry-python/security/advisories/GHSA-mf5v-w3w3-f6cg
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-126360
- WEB https://github.com/open-telemetry/opentelemetry-python/pull/5818
- WEB https://github.com/open-telemetry/opentelemetry-python/pull/5856
- WEB https://github.com/open-telemetry/opentelemetry-python/commit/78123a2755c907c602e02352aebed4be86aa5350
- WEB https://github.com/open-telemetry/opentelemetry-python/commit/faa72dae511ae64a7bf8ca63eff9ad4387d0b939
- PACKAGE https://github.com/open-telemetry/opentelemetry-python
- WEB https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.45.2
Source records: GHSA-mf5v-w3w3-f6cg (OSV.dev) · EPSS by FIRST, 2026-11-26.