Fix CVE-2026-40894: pin OpenTelemetry.Api to 1.15.3#209
Merged
Conversation
Akka.Hosting transitively pulls in OpenTelemetry.Api 1.9.0, which is affected by CVE-2026-40894 (GHSA-g94r-2vxg-569j) - excessive memory allocation in propagation header parsing. The repo treats NuGet audit findings (NU1902) as build errors, so this currently fails CI on every branch, including dev. Add a direct PackageReference to OpenTelemetry.Api in Termina.Demo.Streaming (the only project with the transitive dependency), pinned to the first patched release, 1.15.3. The direct reference overrides the transitive 1.9.0 without changing package resolution for any other project.
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.
Problem
CI is currently red on every branch, including
dev— all build/test/AOT jobs fail at restore:Akka.Hosting 1.5.64transitively pulls inOpenTelemetry.Api 1.9.0:OpenTelemetry.Api < 1.15.3is affected by CVE-2026-40894 (GHSA-g94r-2vxg-569j) — excessive memory allocation in propagation header parsing. The repo treats NuGet audit findings (NU1902) as build errors, so it breaks every build.Fix
Add a direct
PackageReferencetoOpenTelemetry.ApiinTermina.Demo.Streaming— the only project with the transitive dependency — pinned to the first patched release, 1.15.3. The direct reference overrides the transitive1.9.0.Surgical on purpose: I did not enable
CentralPackageTransitivePinningEnabledrepo-wide, because the test project pullsMicrosoft.CodeAnalysis.CSharp 5.3.0transitively while CPM pins4.12.0— flipping that flag on would trigger anNU1605downgrade error. This change alters package resolution for no other project.Verification
dotnet build Termina.slnx -c Release→ 0 warnings, 0 errors (was failing).dotnet nuget whyconfirmsOpenTelemetry.Apiresolves to1.15.3across the graph.dotnet list package --vulnerable --include-transitive→ no vulnerable packages.No impact on the shipped
Terminapackage — the vulnerable dependency only ever reachedTermina.Demo.Streaming(a non-packable demo), viaAkka.Hosting, which the core library does not reference.Unblocks CI for #208 and any other open PR once they pick up
dev.