From ccd24f9f0a5036b166bd81099b541ac093fcf0d3 Mon Sep 17 00:00:00 2001 From: Aaron Burtle Date: Tue, 20 Oct 2026 08:03:15 -0700 Subject: [PATCH] Fix NuGet audit failures blocking CI restore New advisories make the implicit restore in the Unit Tests pipeline's "Check formatting" step fail (NuGet audit warnings are errors): - System.Security.Cryptography.Pkcs 9.0.11 (via Microsoft.Data.SqlClient 6.1.5) and 9.0.4 (via Aspire.Hosting.SqlServer -> Microsoft.Data.SqlClient 6.1.1): GHSA-2fmv-rv2c-59x7, GHSA-846f-f764-76mx. Pin 9.0.21. - MessagePack 2.5.301 (Aspire.AppHost): GHSA-qhrr-8q5h-9q3h. Bump to 2.5.307. - Microsoft.OpenApi.Readers 1.6.14 (Service.Tests): GHSA-7pxr-59rr-hqj2. Bump Microsoft.OpenApi and Microsoft.OpenApi.Readers to 1.6.31 together. Pkcs is only a transitive dependency and central package management does not pin transitive versions without a reference, so reference it from Config and Core (where SqlClient enters the product graph; Core also so the packed library declares it) and from Aspire.AppHost, whose restore graph does not include its project references. No audit warnings are suppressed. --- src/Aspire.AppHost/Aspire.AppHost.csproj | 2 ++ src/Config/Azure.DataApiBuilder.Config.csproj | 2 ++ src/Core/Azure.DataApiBuilder.Core.csproj | 2 ++ src/Directory.Packages.props | 13 +++++++++---- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/Aspire.AppHost/Aspire.AppHost.csproj b/src/Aspire.AppHost/Aspire.AppHost.csproj index 4fbe70cdcf..a74aa18a23 100644 --- a/src/Aspire.AppHost/Aspire.AppHost.csproj +++ b/src/Aspire.AppHost/Aspire.AppHost.csproj @@ -18,6 +18,8 @@ + + diff --git a/src/Config/Azure.DataApiBuilder.Config.csproj b/src/Config/Azure.DataApiBuilder.Config.csproj index 0d1655df76..64c554dba5 100644 --- a/src/Config/Azure.DataApiBuilder.Config.csproj +++ b/src/Config/Azure.DataApiBuilder.Config.csproj @@ -23,6 +23,8 @@ + + diff --git a/src/Core/Azure.DataApiBuilder.Core.csproj b/src/Core/Azure.DataApiBuilder.Core.csproj index 0082d2e9b2..2542fed777 100644 --- a/src/Core/Azure.DataApiBuilder.Core.csproj +++ b/src/Core/Azure.DataApiBuilder.Core.csproj @@ -41,6 +41,8 @@ + + diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index afa9d3e276..6ad266c9ec 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -33,8 +33,9 @@ - + by Aspire.Hosting (KubernetesClient). 2.5.307 patches GHSA-hv8m-jj95-wg3x / CVE-2026-48109 + and GHSA-qhrr-8q5h-9q3h / CVE-2026-92707. --> + @@ -58,8 +59,9 @@ - - + + + @@ -80,6 +82,9 @@ + +