Skip to content

Alternative: suppress NuGet audit advisories for OpenTelemetry + System.Security.Cryptography.Xml (compile-time-only) - #7858

Merged
ViktorHofer merged 1 commit into
dotnet:release/10.0.1xxfrom
mmitche:dev/mmitche/nuget-audit-suppress
Jul 21, 2026
Merged

ViktorHofer merged 1 commit into
dotnet:release/10.0.1xxfrom
mmitche:dev/mmitche/nuget-audit-suppress

Conversation

@mmitche

@mmitche mmitche commented Jul 20, 2026

Copy link
Copy Markdown
Member

Summary

This is a third alternative for the MSBuild NuGet audit failures. Instead of upgrading the dependency graph like #7766 or dropping net472 like #7821, this PR adds scoped NuGetAuditSuppress items under src\msbuild for exactly the affected advisories.

Suppressed advisories:

Rationale

These are compile-time-only dependency paths, not representative of the packages actually deployed or shipped by the product:

  • OpenTelemetry.Api comes transitively through the net472 Visual Studio telemetry references Microsoft.VisualStudio.OpenTelemetry.Collector and Microsoft.VisualStudio.OpenTelemetry.ClientExtensions, which are referenced with PrivateAssets=all.
  • System.Security.Cryptography.Xml is used through compile-time signing helpers and is also private to the build dependency path.

Because the audit hits are not representative of the shipped package surface, suppressing the specific advisories is appropriate here and keeps this alternative smaller than an OpenTelemetry upgrade cascade (#7766) or removing the net472 target (#7821).

cc @rainersigwald

Add scoped NuGetAuditSuppress items for the OpenTelemetry.Api and System.Security.Cryptography.Xml advisories affecting MSBuild restore.

This keeps the release branch dependency graph unchanged as a third alternative to upgrading OpenTelemetry or dropping net472. The affected dependency paths are compile-time-only VS telemetry and signing helper references marked private, so the advisories are not representative of the actually deployed packages.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: bc63fc57-da4d-4945-bcfd-7a438341ffc7
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@ViktorHofer
ViktorHofer merged commit 030a57b into dotnet:release/10.0.1xx Jul 21, 2026
11 checks passed
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team July 21, 2026 07:45
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