You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Microsoft.Data.SqlClient installs System.Security.Crytography.Pkcs 9.x.x which is vulnerable #4958
I updated 4 packages, only to still get my packages listed as Vulnerable due to the real issue is Microsoft.Data.SqlClient. A couple of years ago this same thing happened, and I got an email my packages shouldn't have been listed as vulnerable, but it happened again.
VS Solution Explorer shows the error
To reproduce
Create a NuGet package that references the latest Microsoft.Data.SqlClient 7.1.1
Expected behavior
Not listing my NUGet packages as Vulnerable
Further technical details
Microsoft.Data.SqlClient version: (found on the nuGet or Microsoft.Data.SqlClient.dll)
.NET target: .NET 10
⚠️ Partial: received .NET target (.NET 10), SqlClient version (7.1.1, from repro); still missing: SQL Server version, OS, exact warning text (NuGet advisory ID), expected vs actual details beyond "not flagged vulnerable"
The reporter says packages referencing Microsoft.Data.SqlClient 7.1.1 are flagged as vulnerable because of the transitive dependency System.Security.Cryptography.Pkcs 9.x. This is a dependency-version/NuGet audit problem in package references, not a runtime defect. Severity is likely P2, since it is a supply-chain warning that can break builds with warnings-as-errors.
Next Steps
@DataJuggler, please provide: the exact warning text (NuGet advisory/CVE ID and flagged package version), the output of dotnet list package --include-transitive, the target framework of the consuming project, and OS/SQL Server version if relevant.
Once confirmed, assign to Copilot coding agent to investigate the System.Security.Cryptography.Pkcs version in Directory.Packages.props and the SqlClient csproj, and bump to the patched version for the net10.0 and net462 targets.
Note: This triage summary is auto-generated by an AI agent. The analysis and suggestions above have not been verified by a human maintainer. Please treat as preliminary guidance only.
We understand that adding direct references to patched Pkcs versions is
a workaround. However, as a library publisher, we would prefer to upgrade
SqlClient to a servicing release that declares secure dependency minimums,
rather than maintain additional overrides in our package.
I noticed that #4846 is closed and associated with the 7.1.2 milestone.
Could you please clarify:
Which published SqlClient version includes these dependency fixes?
Does the fix cover both the .NET 8 and .NET 9 dependency groups
(the latter is selected by our net10.0 target)?
If the servicing package is not yet available, is there an estimated
release date for 7.1.2?
We have observed the dependency audit warnings; we have not demonstrated
an exploitable path through SqlClient.
@sugarst 6.1.8 includes the fixes, and 7.1.2 is planned for November 11 as I mentioned just above. The fix covers .NET 8 and .NET 9 dependency (.NET 10 support is coming in 8.0.0, planned for early November)
Reacted by Cheena Malhotra, Berend Haan, Fabio Montagner, Aymeric Bizouarn, sugarst, CCJanCu and 山奥通信
Activity
github-actions commentedon Nov 1, 2026
🔍 Triage Summary
Analysis
The reporter says packages referencing Microsoft.Data.SqlClient 7.1.1 are flagged as vulnerable because of the transitive dependency System.Security.Cryptography.Pkcs 9.x. This is a dependency-version/NuGet audit problem in package references, not a runtime defect. Severity is likely P2, since it is a supply-chain warning that can break builds with warnings-as-errors.
Next Steps
dotnet list package --include-transitive, the target framework of the consuming project, and OS/SQL Server version if relevant.Directory.Packages.propsand the SqlClient csproj, and bump to the patched version for the net10.0 and net462 targets.ErikEJ commentedon Nov 1, 2026
Did you check existing issues?
7.1.2 with a fix for this is planned for November 11
DataJuggler commentedon Nov 1, 2026
I searched, I guess it defaults to IsOpen so I guess I didn't.
OK, I will check for an update later in the month. Thanks
sugarst commentedon Nov 2, 2026
Hi maintainers,
We are also affected by this issue while preparing the next release of
WatchDog(Layout.WatchDog.NET), an ASP.NET Core logging library.Our SQL Server storage package targets both
net8.0andnet10.0andreferences
Microsoft.Data.SqlClient7.1.1.Our current
project.assets.jsonresolves:Both versions produce NU1902 and NU1903 warnings for:
GHSA-2fmv-rv2c-59x7
GHSA-846f-f764-76mx
For context, our project configuration is:
We understand that adding direct references to patched Pkcs versions is
a workaround. However, as a library publisher, we would prefer to upgrade
SqlClient to a servicing release that declares secure dependency minimums,
rather than maintain additional overrides in our package.
I noticed that #4846 is closed and associated with the 7.1.2 milestone.
Could you please clarify:
(the latter is selected by our net10.0 target)?
release date for 7.1.2?
We have observed the dependency audit warnings; we have not demonstrated
an exploitable path through SqlClient.
Thank you!
ErikEJ commentedon Nov 2, 2026
@sugarst 6.1.8 includes the fixes, and 7.1.2 is planned for November 11 as I mentioned just above. The fix covers .NET 8 and .NET 9 dependency (.NET 10 support is coming in 8.0.0, planned for early November)
TonyValenti commentedon Nov 7, 2026
Thanks for the update! We're watching for this update as well for the same reasons.
mdaigle commentedon Nov 12, 2026
We've merged fixes for this in each supported version band. Please look out for releases today.