Skip to content

chore(deps): raise the OpenTelemetry floor to 1.12.0 - #5588

Open
jamescrosswell wants to merge 2 commits into
mainfrom
backport/otel-floor-1.12.0
Open

jamescrosswell wants to merge 2 commits into
mainfrom
backport/otel-floor-1.12.0

Conversation

@jamescrosswell

Copy link
Copy Markdown
Collaborator

Closes #4931

Summary

Backports #5560 from version7 to main (6.x), and allowlists the remaining OpenTelemetry advisory so the nightly List vulnerable packages job goes green again.

Project Package Before After
Sentry.OpenTelemetry OpenTelemetry 1.6.0 1.12.0
Sentry.OpenTelemetry.Exporter OpenTelemetry.Exporter.OpenTelemetryProtocol 1.10.0 1.12.0

The floor rationale is unchanged from #5560: OpenTelemetry.Api 1.10.0–1.11.1 are delisted from nuget.org over GHSA-8785-wc3w-h8q6, a CPU DoS triggered just by receiving traceparent/tracestate headers, and 1.11.1/1.11.2 pull the deprecated Grpc.Core on net462. The cherry-pick applied cleanly.

Allowlist changes

  • Added GHSA-4625-4j76-fww9 (OpenTelemetry.Exporter.OpenTelemetryProtocol, fixed only in 1.15.3). Exploiting it requires the user to opt in to the experimental disk retry (OTEL_DOTNET_EXPERIMENTAL_OTLP_RETRY=disk) without setting a retry directory, and a local attacker with access to the shared temp directory. Sentry never enables disk retry, and setting the directory is a full workaround, so it doesn't justify forcing consumers up to 1.15.3.
  • Updated the reason for GHSA-g94r-2vxg-569j to reflect the new 1.12.0 floor, which now covers both packages.

🤖 Generated with Claude Code

jamescrosswell and others added 2 commits September 17, 2026 13:24
Sentry.OpenTelemetry floored OpenTelemetry at 1.6.0 and
Sentry.OpenTelemetry.Exporter floored OpenTelemetry.Exporter.OpenTelemetryProtocol
at 1.10.0. The latter resolved OpenTelemetry.Api 1.10.0 by default, which is
delisted from nuget.org over GHSA-8785-wc3w-h8q6 - a DoS triggered simply by
receiving a traceparent/tracestate header, with no opt-in. Nothing warned
consumers, because the exporter package itself is still listed.

1.12.0 rather than the 1.11.0 the issue asks for: 1.11.0 and 1.11.1 are delisted
too, and 1.11.1/1.11.2 pull the deprecated Grpc.Core on net462. 1.12.0 is the
lowest floor that is both listed and free of that. It also drops the
Google.Protobuf and Grpc.Net.Client dependencies the exporter carried at 1.10.0.

OpenTelemetry 1.12.0 no longer brings System.Net.Http in transitively on .NET
Framework, so Sentry.OpenTelemetry now references it explicitly, matching the
pattern already in Sentry.csproj.

Closes #4931

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
(cherry picked from commit 74e84fb)
The advisory needs opt-in experimental disk retry without a configured
directory, plus a local attacker, and is fixed only in 1.15.3. Also
refresh the GHSA-g94r-2vxg-569j reason for the new 1.12.0 floor.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@jamescrosswell jamescrosswell changed the title feat(otel): raise the OpenTelemetry floor to 1.12.0 feat(otel): bump the minimum supported version of OpenTelemetry to 1.12.0 Sep 17, 2026
@jamescrosswell jamescrosswell changed the title feat(otel): bump the minimum supported version of OpenTelemetry to 1.12.0 chore(deps): raise the OpenTelemetry floor to 1.12.0 Sep 17, 2026
@codecov

codecov Bot commented Sep 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.76%. Comparing base (cba98c9) to head (7e7755f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5588   +/-   ##
=======================================
  Coverage   74.76%   74.76%           
=======================================
  Files         515      515           
  Lines       18963    18963           
  Branches     3694     3694           
=======================================
  Hits        14177    14177           
  Misses       3908     3908           
  Partials      878      878           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jamescrosswell
jamescrosswell marked this pull request as ready for review September 17, 2026 04:34
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bump to >= 1.11.0 of the OpenTelemetry dependencies

2 participants