Skip to content

Fix GO-2026-5506 by bumping OpenTelemetry to v1.42.0 - #35

Open
thrawn01 wants to merge 1 commit into
mainfrom
cursor/fix-otel-go-2026-5506-355b
Open

thrawn01 wants to merge 1 commit into
mainfrom
cursor/fix-otel-go-2026-5506-355b

Conversation

@thrawn01

@thrawn01 thrawn01 commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes reachable vulnerability GO-2026-5506 (CVE-2026-29181, GHSA-mh2q-q3fh-2475) in go.opentelemetry.io/otel. From v1.36.0 through v1.40.0, multi-value baggage header extraction parses each field-value independently and aggregates members, so many baggage header lines can amplify CPU and allocations. The advisory fix is v1.41.0.

v1.41.0 is itself affected by GO-2026-5158 (CVE-2026-41178), which drops the raw baggage length cap. This PR moves to v1.42.0, the first release at or above v1.41.0 that fixes GO-2026-5506 and is not affected by GO-2026-5158. Related modules are on the matching v1.42.0 / contrib v0.67.0 set. go mod tidy was run. The Go version stays 1.26.10; v1.42.0 requires Go 1.25.0, so no toolchain bump was required.

Versions

Module From To
go.opentelemetry.io/otel v1.38.0 v1.42.0
go.opentelemetry.io/otel/metric v1.38.0 v1.42.0
go.opentelemetry.io/otel/sdk v1.38.0 v1.42.0
go.opentelemetry.io/otel/trace v1.38.0 v1.42.0
go.opentelemetry.io/otel/sdk/metric (otelhttp test dep, go.sum only) v1.38.0 v1.42.0
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.63.0 v0.67.0
go.opentelemetry.io/auto/sdk (indirect, required by otel v1.42.0) v1.1.0 v1.2.1
golang.org/x/sys (indirect, required by otel v1.42.0) v0.38.0 v0.41.0
github.com/cespare/xxhash/v2 (indirect, required by otel v1.42.0) — v2.3.0

There are no OpenTelemetry exporter modules in this repository.

Verification

Go toolchain used: go1.26.10. govulncheck v1.9.0, vuln DB last modified 2026-10-27.

  • go build ./... — passed
  • go test ./... — passed (groupcache-go/v3, cluster, contrib, internal/lru, internal/singleflight, transport, transport/peer)
  • govulncheck ./... — 0 reachable vulnerabilities. GO-2026-5506 and GO-2026-5158 are not reported.

Unresolved

govulncheck still reports 15 vulnerabilities in golang.org/x/net v0.47.0 (GO-2026-4918, GO-2026-5025, GO-2026-5026, GO-2026-5027, GO-2026-5028, GO-2026-5029, GO-2026-5030, GO-2026-5942, GO-2026-6603, GO-2026-6610, GO-2026-6611, GO-2026-6612, GO-2026-6617, GO-2026-6860, GO-2026-6866). They are module-level findings the scanner says this code does not call, and golang.org/x/net was already v0.47.0 before this change. Left unchanged so this PR stays limited to the OpenTelemetry fix.

Open in Web Open in Cursor 

v1.41.0 fixes the multi-value baggage allocation issue but is affected by
GO-2026-5158, so use the matching v1.42.0 module set and otelhttp v0.67.0.

Co-authored-by: Derrick J. Wippler <thrawn01@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants