Repository navigation
fix: pin System.Security.Cryptography.Pkcs to the patched 10.0.13 - #16
Merged
Merged
Conversation
Two denial-of-service advisories (GHSA-846f-f764-76mx, high, and GHSA-2fmv-rv2c-59x7, moderate) affect System.Security.Cryptography.Pkcs 9.0.11 and 10.0.10, which restore picked up transitively through Microsoft.Data.SqlClient (via EF Core SqlServer) and Microsoft.Identity.Web.TokenCache. Both are fixed in 10.0.13. A direct reference in the Data project overrides the transitive versions for every project that depends on it (Functions, Web and the Data tests). The build previously reported eight NU1902/NU1903 warnings and now reports none. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the high-severity vulnerability warning in the build by pinning
System.Security.Cryptography.Pkcsto the patched 10.0.13.Details
Microsoft.Data.SqlClient 6.1.6(through EF Core SqlServer) brought in 9.0.11, andMicrosoft.Identity.Web.TokenCache 4.14.2brought in 10.0.10.PackageReferenceinIdentityFlow.Data. NuGet uses the nearest declared version, so it overrides the transitive ones for Functions, Web and the Data tests, which all depend on the Data project. Being a direct dependency, Dependabot now also tracks it.Verification
dotnet list package --vulnerable --include-transitive: all nine projects report no vulnerable packages (before: Data, Functions, Web and Data.Tests were flagged).dotnet format --verify-no-changesis clean.This is a denial-of-service class issue, so the practical risk depends on whether untrusted PKCS data reaches these libraries, which I did not assess. Pinning is the low-risk way to clear it either way.
🤖 Generated with Claude Code