Skip to content

fix: resolve GHSA-g94r-2vxg-569j by bumping OpenTelemetry to 1.10.0 and MEL floor to 9.0.0#743

Merged
Aaronontheweb merged 4 commits into
akkadotnet:devfrom
Aaronontheweb:fix/bump-opentelemetry-1.10.0
May 17, 2026
Merged

fix: resolve GHSA-g94r-2vxg-569j by bumping OpenTelemetry to 1.10.0 and MEL floor to 9.0.0#743
Aaronontheweb merged 4 commits into
akkadotnet:devfrom
Aaronontheweb:fix/bump-opentelemetry-1.10.0

Conversation

@Aaronontheweb

Copy link
Copy Markdown
Member

Summary

  • Bumps OpenTelemetry minimum version floor in Akka.Hosting.csproj from [1.9.0,) to [1.10.0,)
  • Bumps OpenTelemetry.Extensions.Hosting and OpenTelemetry.Exporter.OpenTelemetryProtocol in the example project from 1.9.0 to 1.10.0

Why

OpenTelemetry.Api 1.9.0 has a known moderate severity vulnerability (GHSA-g94r-2vxg-569j). Because Akka.Hosting pinned OpenTelemetry >= 1.9.0, NuGet resolved to exactly 1.9.0, which pulled the vulnerable OpenTelemetry.Api 1.9.0 into downstream consumers.

This was discovered when a Dependabot PR in akkadotnet/akka.net (#8192) bumped Akka.Management to 1.5.67 (which depends on Akka.Hosting 1.5.67). The build failed with:

error NU1902: Warning As Error: Package 'OpenTelemetry.Api' 1.9.0 has a known moderate severity vulnerability

Bumping the minimum to [1.10.0,) resolves the transitive pull of the vulnerable package. OpenTelemetry.Api 1.10.0 is not affected by the vulnerability.

Test plan

  • CI passes (NuGet audit no longer flags vulnerable transitive dependency)



OpenTelemetry.Api 1.9.0 has a known moderate severity vulnerability
(GHSA-g94r-2vxg-569j). Bumping the minimum version floor from [1.9.0,)
to [1.10.0,) resolves the transitive pull of the vulnerable package.
@Aaronontheweb

Copy link
Copy Markdown
Member Author

Ran into a snag — OpenTelemetry 1.10.0 bumped its own Microsoft.Extensions.* dependencies to 9.0.0, which conflicts with Akka.Hosting's current $(MicrosoftExtensionsVersion) floor of [8.0.0,). This causes NU1605 (package downgrade) errors throughout the solution.

The fix is larger than a simple version bump: we'd need to also raise MicrosoftExtensionsVersion to [9.0.0,), which is a broader breaking change for downstream consumers still on .NET 8. Leaving this for further discussion on the right approach before proceeding.

OpenTelemetry 1.10.0 pulls in Microsoft.Extensions.Logging.Configuration
9.0.0, which transitively requires Microsoft.Extensions.* >= 9.0.0.
The previous floor of [8.0.0,) caused NU1605 downgrade errors across
every project in the solution.

Raising the floor to [9.0.0,) satisfies the transitive requirement
without forcing adoption of unreleased .NET 10 packages.
@Aaronontheweb Aaronontheweb enabled auto-merge (squash) May 17, 2026 20:54
@Aaronontheweb Aaronontheweb changed the title fix: bump OpenTelemetry minimum to 1.10.0 to resolve GHSA-g94r-2vxg-569j fix: resolve GHSA-g94r-2vxg-569j by bumping OpenTelemetry to 1.10.0 and MEL floor to 9.0.0 May 17, 2026
…e requirements

Bumping OpenTelemetry to 1.10.0 and MicrosoftExtensionsVersion to [9.0.0,)
caused cascading NU1605 errors because several projects had hard-pinned
8.x floors on individual MEL sub-packages:

- SystemTextJsonVersion: [8.0.5,) -> [9.0.0,)
- Microsoft.Bcl.AsyncInterfaces: 8.0.0 -> 9.0.0 (TestKit, TestKit.Xunit2,
  and their test projects)
- Microsoft.Extensions.Configuration.Json: 8.0.1 -> 9.0.0
  (Akka.Hosting.Tests, Akka.Cluster.Hosting.Tests)
- Microsoft.Extensions.Configuration.EnvironmentVariables: 8.0.0 -> 9.0.0
  (Akka.Hosting.Tests)

Also fixes NU1902 in the example project: bumps
OpenTelemetry.Exporter.OpenTelemetryProtocol and
OpenTelemetry.Extensions.Hosting from 1.10.0 to 1.15.3
(patches GHSA-4625-4j76-fww9, affects 1.8.0-1.15.2), and aligns
Microsoft.Extensions.Hosting and Microsoft.Extensions.ServiceDiscovery
to 9.x in the example project.
…oftExtensionsVersion)

All Microsoft.Bcl.AsyncInterfaces, Microsoft.Extensions.Configuration.Json,
and Microsoft.Extensions.Configuration.EnvironmentVariables references that
were individually hard-pinned to 8.x or 9.0.0 literals now use
\$(MicrosoftExtensionsVersion) from Directory.Build.props.

Microsoft.Extensions.Hosting in Akka.Hosting.LoggingDemo was pinned at 6.0.0
and is now also on \$(MicrosoftExtensionsVersion).

A single bump to MicrosoftExtensionsVersion in Directory.Build.props will now
keep all these sub-packages in sync automatically.
@Aaronontheweb Aaronontheweb merged commit 3520cf6 into akkadotnet:dev May 17, 2026
2 checks passed
@Aaronontheweb Aaronontheweb mentioned this pull request May 18, 2026
This was referenced May 19, 2026
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.

1 participant