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
Using a vulnerable version of System.Security.Cryptography.Pkcs (CVE-2026-70162, CVE-2026-84008) #4843
Two recent CVEs (CVE-2026-70162, CVE-2026-84008) are being flagged because of the dependency on version 9.0.18 of System.Security.Cryptography.Pkcs. Messages from Github Advanced security:
#626 Microsoft Security Advisory CVE-2026-70162 - .NET Denial of Service Vulnerability (CVE-2026-70162)
...contains a reference to an insecure NuGet package 'system.security.cryptography.pkcs 9.0.18'. Recommendation: Upgrade System.Security.Cryptography.Pkcs from 9.0.18 to 9.0.21 to fix the vulnerability.
#627 Microsoft Security Advisory CVE-2026-84008 - .NET Denial of Service Vulnerability (CVE-2026-84008)
...contains a reference to an insecure NuGet package 'system.security.cryptography.pkcs 9.0.18'. Recommendation: Upgrade System.Security.Cryptography.Pkcs from 9.0.18 to 9.0.21 to fix the vulnerability.
Reacted by Crusty Applesniffer, Nicholas Smith, Piotr Kiełkowicz, Matheus Dasuke, Michael Whitaker, Doug Waldron, Gabriel Bider, Clement Gutel, Andrei Davidovich, yaroslavlsd and 18 more
⚠️ Partial: received SqlClient version (7.1.1), .NET TFM (net10.0 / SDK 10.0.12) and dependency graph (nuget why); still missing: OS, SQL Server version (not relevant to this advisory)
Area
Area\Engineering
Duplicates
None found
Regression
Inconclusive
Analysis
The nuget why output shows System.Security.Cryptography.Pkcs 9.0.18 reaching the project through two paths: directly from Microsoft.Data.SqlClient 7.1.1, and transitively via NuGet.Packaging 7.3.1. The SqlClient path is likely a real concern for the released 7.1.1 package, while the NuGet path is outside this repo's control. Severity: P2 (DoS advisories on a dependency, with a workaround available).
Next Steps
@jeffska, please confirm your OS. The SQL Server version isn't needed for this report.
Maintainers: check why the 7.1.1 package resolves Pkcs 9.0.18 on net10.0. Also check whether a servicing bump to 9.0.21 or later is needed, and whether the advisories apply to 10.x.
Workaround: add a direct PackageReference to System.Security.Cryptography.Pkcs 9.0.21 or later in your project to override both transitive paths.
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.
Thanks @jeffska. We'll bump all direct dependencies as part of our next round of releases. In the meantime please add a direct package reference to a secure version.
Reacted by Erik Ejlskov Jensen, David McClelland, cbermanSSP, RobertK66, Frulfump and Abebe Hailu
Reacted by Neil Houghton, adamsmithtmp and GabrielReynoldsAHA
Thanks @jeffska. We'll bump all direct dependencies as part of our next round of releases. In the meantime please add a direct package reference to a secure version.
It says on the milestones page that 7.1.2 is due by November 11, 2026. Does that mean we'll have to wait almost 4 weeks for this to be fixed? I would expect an immediate fix for a security issue like this. Adding direct package references for vulnerable dependencies is not a sustainable solution.
Reacted by awil-clx, RobertK66, Neil Houghton, JarRami, adamsmithtmp and GabrielReynoldsAHA
I think the problem is that many people run their CI pipelines with "Warnings as errors" and this fails those builds. For those people it would be easier to have renovatebot bump this nugget rather than having to pin a new package in each repo.
Reacted by bklop, [email protected], Sevill@, Neil Houghton and JarRami
@JohnMaddison Sure, but this package is not part of the dotnet runtime, it is maintained by the SQL Server team, and they need time to do their work properly.
Reacted by RobertK66
Reacted by awil-clx, Neil Houghton and Jake Carpenter
21. @JohnMaddison Sure, but this package is not part of the dotnet runtime, it is maintained by the SQL Server team, and they need time to do their work properly.
The SQL Server team has done their work properly, there is a new version 10.0.13 published on nuget, without marked as vulnerable. If we can add a transitive package reference to our .csproj to fix the vulnerable warning, Microsoft.Data.SqlClient can release a hot fix too.
Reacted by Joshua Grant, ademchuk-orbussoftware, Josh Strauss, Alca259, awil-clx, Neil Houghton, Dean-NC, wesley0172, fdclmp, JarRami and 5 more
Reacted by Neil Houghton, Blake McCullough and daily-salamander-rd
I think the problem is that many people run their CI pipelines with "Warnings as errors" and this fails those builds. For those people it would be easier to have renovatebot bump this nugget rather than having to pin a new package in each repo.
You can use MSBuild's conditional statements to configure a dedicated CI pipeline for running audits, without audit warnings being treated as errors in other pipelines or on local builds. Depending on your CI system and team processes, you can have failed runs of the audit pipeline email the team, or you may have a dashboard where you can show a badge of the most recent run of the pipeline.
Like many things in programming, there are multiple ways to achieve the outcome. One option is to treat NuGet Audit warnings as errors only in an audit pipeline.
Activity
github-actions commentedon Oct 14, 2026
jeffska commentedon Oct 14, 2026
Info requested:
.NET SDK 10.0.12
Microsoft.Data.SqlClient 7.1.1
OS: Windows 11 and Linux
nuget why:
github-actions commentedon Oct 14, 2026
🔍 Triage Summary (updated after author response)
nuget why); still missing: OS, SQL Server version (not relevant to this advisory)Analysis
The
nuget whyoutput showsSystem.Security.Cryptography.Pkcs9.0.18 reaching the project through two paths: directly from Microsoft.Data.SqlClient 7.1.1, and transitively viaNuGet.Packaging7.3.1. The SqlClient path is likely a real concern for the released 7.1.1 package, while the NuGet path is outside this repo's control. Severity: P2 (DoS advisories on a dependency, with a workaround available).Next Steps
PackageReferencetoSystem.Security.Cryptography.Pkcs9.0.21 or later in your project to override both transitive paths.jeffska commentedon Oct 14, 2026
OS: Windows 11 and Linux
escarls commentedon Oct 14, 2026
This also affects Microsoft.Data.SqlClient 6.1.7.
fix(deps): pin System.Security.Cryptography.Pkcs to 9.0.21
mdaigle commentedon Oct 14, 2026
Thanks @jeffska. We'll bump all direct dependencies as part of our next round of releases. In the meantime please add a direct package reference to a secure version.
silkfire commentedon Oct 14, 2026
@mdaigle When is the next planned release?
11 remaining items
bklop commentedon Oct 15, 2026
It says on the milestones page that 7.1.2 is due by November 11, 2026. Does that mean we'll have to wait almost 4 weeks for this to be fixed? I would expect an immediate fix for a security issue like this. Adding direct package references for vulnerable dependencies is not a sustainable solution.
ErikEJ commentedon Oct 15, 2026
@bklop I you want an immediate fix, add a direct package reference. 8.0.0 is planned for November 4 btw.
JohnMaddison commentedon Oct 15, 2026
I think the problem is that many people run their CI pipelines with "Warnings as errors" and this fails those builds. For those people it would be easier to have renovatebot bump this nugget rather than having to pin a new package in each repo.
ErikEJ commentedon Oct 15, 2026
@JohnMaddison Sure, but this package is not part of the dotnet runtime, it is maintained by the SQL Server team, and they need time to do their work properly.
weifenluo commentedon Oct 18, 2026
The SQL Server team has done their work properly, there is a new version 10.0.13 published on nuget, without marked as vulnerable. If we can add a transitive package reference to our .csproj to fix the vulnerable warning, Microsoft.Data.SqlClient can release a hot fix too.
Frulfump commentedon Oct 25, 2026
Here's what NuGet says about that https://learn.microsoft.com/en-us/nuget/concepts/auditing-packages#separating-errors-from-warnings-with-a-dedicated-auditing-pipeline
And from what I know Renovate and Dependabot can already open PRs with a direct dependency instead until it's fixed upstream.
priyankatiwari08 commentedon Oct 26, 2026
The fix is merged and it will be released in 8.0.0-preview1 which is planned for this week.