[Secrets] Restore fails NuGetAudit: SqlClient 6.0.2 pulls System.Security.Cryptography.Pkcs 9.0.4 (GHSA-846f-f764-76mx, GHSA-2fmv-rv2c-59x7) #22
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
dotnet restore ZB.MOM.WW.Secrets.slnxfails on a clean machine (reproduced 2026-11-09):Cli,TestsandReplicator.SqlServer.Testsraise the same advisories as warnings.Source:
dotnet nuget why→Microsoft.Data.SqlClient6.0.2 →System.Security.Cryptography.Pkcs9.0.4 (transitive).Workaround in use:
-p:NuGetAudit=false. The scadaproj#18 work had to restore this way.Do:
System.Security.Cryptography.Pkcsto a patched version inDirectory.Packages.props. Transitive pinning is already enabled for the SQLitePCLRaw pin, so this is the same pattern; alternatively, bump SqlClient if a release pulls a patched Pkcs.*.SqlServerpackages for the same chain:ZB.MOM.WW.Auth.ApiKeys.SqlServerand the apps that reference SqlClient 6.0.2.Fixed on main
8bb2679— transitive pinSystem.Security.Cryptography.Pkcs9.0.21 (first patched in the 9.0 line; 9.0.0–9.0.20 and 10.0.0–10.0.12 are affected, so 10.0.7 still failed) in bothZB.MOM.WW.Secrets/Directory.Packages.propsandZB.MOM.WW.Auth/Directory.Packages.props(Auth's ApiKeys.SqlServer had the same chain).Evidence:
dotnet restoreclean with NuGetAudit ON for both solutions; Secrets tests 212+17+49+38+196 passed / 0 failed; Auth 141+148+19+18 passed / 0 failed. Consumer-app pins tracked separately (new issue).