Repository navigation
chore(deps): update dependency opentelemetry-api to v1.45.2 [security] - #1762
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1762 +/- ##
=======================================
Coverage 96.31% 96.31%
=======================================
Files 50 50
Lines 3831 3831
=======================================
Hits 3690 3690
Misses 141 141 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.45.1→1.45.2OpenTelemetry Python API: Denial of service through quadratic-time traceparent parsing
CVE-2026-126360 / GHSA-mf5v-w3w3-f6cg
More information
Details
Summary
TraceContextTextMapPropagator.extract()inopentelemetry-apiis vulnerable to regular expression denial of service (ReDoS) when processing a specially craftedtraceparentvalue.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 atraceparentstring 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-apito1.45.2or a later release containing the fix.Version
1.45.2rejectstraceparentvalues 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.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
open-telemetry/opentelemetry-python (opentelemetry-api)
v1.45.2Compare Source
Added
opentelemetry-sdk,opentelemetry-configuration,opentelemetry-exporter-prometheus: enforce metric cardinality limits(default 2000) with the
otel.metric.overflowattribute, configurablethrough
View(aggregation_cardinality_limit=...), readercardinality_limitsand declarative configuration(#5809)
Fixed
opentelemetry-api: limittraceparentheader length to 512 characters inTraceContextTextMapPropagatorduring extraction(#5818)
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.