Skip to content

.NET: Bump OpenTelemetry packages to 1.15.3#5478

Merged
SergeyMenshykh merged 2 commits intomicrosoft:mainfrom
SergeyMenshykh:fix/opentelemetry-vulnerability-bump
Apr 24, 2026
Merged

.NET: Bump OpenTelemetry packages to 1.15.3#5478
SergeyMenshykh merged 2 commits intomicrosoft:mainfrom
SergeyMenshykh:fix/opentelemetry-vulnerability-bump

Conversation

@SergeyMenshykh
Copy link
Copy Markdown
Member

@SergeyMenshykh SergeyMenshykh commented Apr 24, 2026

Motivation and Context

The CI build is failing with NU1902 (Warning As Error) due to known moderate severity vulnerabilities in OpenTelemetry packages at version 1.15.0:

Description

Bump OpenTelemetry core packages from 1.15.0 → 1.15.3

In Directory.Packages.props:

  • OpenTelemetry 1.15.0 → 1.15.3
  • OpenTelemetry.Api 1.15.0 → 1.15.3
  • OpenTelemetry.Exporter.Console 1.15.0 → 1.15.3
  • OpenTelemetry.Exporter.InMemory 1.15.0 → 1.15.3
  • OpenTelemetry.Exporter.OpenTelemetryProtocol 1.15.0 → 1.15.3

Align Extensions and Instrumentation packages to 1.15.x

To keep the full OpenTelemetry package set aligned and avoid version skew:

  • OpenTelemetry.Extensions.Hosting 1.14.0 → 1.15.3
  • OpenTelemetry.Instrumentation.AspNetCore 1.14.0 → 1.15.2
  • OpenTelemetry.Instrumentation.Http 1.14.0 → 1.15.1
  • OpenTelemetry.Instrumentation.Runtime 1.14.0 → 1.15.1

Pin transitive dependencies in projects with disabled central pinning

Microsoft.Agents.AI.Foundry.Hosting.csproj and Hosted-Invocations-EchoAgent.csproj set CentralPackageTransitivePinningEnabled=false, which prevents the centrally managed 1.15.3 version from overriding the transitive OpenTelemetry.Exporter.OpenTelemetryProtocol 1.15.0 pulled in by Azure.AI.AgentServer.Core. Added explicit PackageReference entries to force the patched versions:

  • Microsoft.Agents.AI.Foundry.Hosting.csproj — added OpenTelemetry.Exporter.OpenTelemetryProtocol (flows to 8 hosted agent sample projects via ProjectReference)
  • Hosted-Invocations-EchoAgent.csproj — added OpenTelemetry.Api and OpenTelemetry.Exporter.OpenTelemetryProtocol

Update OpenTelemetry packages from 1.15.0 to 1.15.3 in Directory.Packages.props
to resolve NU1902 warnings-as-errors for CVEs GHSA-g94r-2vxg-569j,
GHSA-mr8r-92fq-pj8p, and GHSA-q834-8qmm-v933.

Add explicit PackageReference for OpenTelemetry.Exporter.OpenTelemetryProtocol
in Foundry.Hosting and OpenTelemetry.Api + OpenTelemetry.Exporter.OpenTelemetryProtocol
in Hosted-Invocations-EchoAgent to override transitive 1.15.0 resolution in
projects with CentralPackageTransitivePinningEnabled=false.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 24, 2026 17:02
@SergeyMenshykh SergeyMenshykh changed the title Bump OpenTelemetry packages to 1.15.3 to fix known vulnerabilities Bump OpenTelemetry packages to 1.15.3 Apr 24, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates OpenTelemetry dependencies to patched versions to resolve NU1902 vulnerability warnings and ensure projects with transitive pinning disabled still restore the fixed packages.

Changes:

  • Bumped centrally managed OpenTelemetry package versions from 1.15.0 to 1.15.3.
  • Added explicit PackageReference entries in select projects to force patched OpenTelemetry versions when CentralPackageTransitivePinningEnabled=false.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
dotnet/Directory.Packages.props Central OpenTelemetry version bump to 1.15.3 for vulnerable packages.
dotnet/src/Microsoft.Agents.AI.Foundry.Hosting/Microsoft.Agents.AI.Foundry.Hosting.csproj Adds explicit OTLP exporter reference to override transitive restore.
dotnet/samples/04-hosting/FoundryHostedAgents/invocations/Hosted-Invocations-EchoAgent/Hosted-Invocations-EchoAgent.csproj Adds explicit OpenTelemetry Api + OTLP exporter references to override transitive restore.

Comment thread dotnet/Directory.Packages.props Outdated
@moonbox3 moonbox3 added the .NET label Apr 24, 2026
@github-actions github-actions Bot changed the title Bump OpenTelemetry packages to 1.15.3 .NET: Bump OpenTelemetry packages to 1.15.3 Apr 24, 2026
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated Code Review

Reviewers: 4 | Confidence: 88% | Result: All clear

Reviewed: Correctness, Security Reliability, Test Coverage, Design Approach


Automated review by SergeyMenshykh's agents

Align the full OpenTelemetry package set to the 1.15.x family:
- OpenTelemetry.Extensions.Hosting: 1.14.0 -> 1.15.3
- OpenTelemetry.Instrumentation.AspNetCore: 1.14.0 -> 1.15.2
- OpenTelemetry.Instrumentation.Http: 1.14.0 -> 1.15.1
- OpenTelemetry.Instrumentation.Runtime: 1.14.0 -> 1.15.1

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants