Skip to content

chore: the test and spike projects restore a patched System.Security.Cryptography.Pkcs - #68

Merged
CaffeinatedCoder merged 1 commit into
mainfrom
chore/67-pkcs-advisory
Nov 12, 2026
Merged

CaffeinatedCoder merged 1 commit into
mainfrom
chore/67-pkcs-advisory

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

Closes #67

Problem

Every build of the test project warned NU1903 and NU1902: System.Security.Cryptography.Pkcs 9.0.18 has a high (GHSA-846f-f764-76mx) and a moderate (GHSA-2fmv-rv2c-59x7) advisory. It arrives through Microsoft.EntityFrameworkCore.SqlServer rc.3 and Microsoft.Data.SqlClient 7.1.0. Nothing that ships references it.

Change

The four projects that reference the SQL Server provider pin System.Security.Cryptography.Pkcs 9.0.23, each with a comment naming the advisories, the dependency path and when the line can go:

  • test/CodoMetis.EFCore.SchemaKit.Tests
  • spikes/A.DecoratorOwnership
  • spikes/E.ImpactTable
  • spikes/B.DesignTime/consumer, under the same condition as its SQL Server reference

Both advisories are fixed in 9.0.21 for the 9.0 line; 9.0.23 is that line's newest patch. Moving Microsoft.Data.SqlClient instead does not help: 7.1.1, its newest stable version, still asks for 9.0.18.

WarningsNotAsErrors for NU1901 to NU1904 stays as it is: whether a build passes should not depend on an advisory published upstream.

Tests

On SDK 11.0.100 in the checkout:

  • Before (the pins stashed): the test project's build reports NU1902 and NU1903.
  • After: the solution, spike A, spike E and the probes build with 0 warnings, and dotnet nuget why resolves the package to 9.0.23.
  • Kernel tests without a server: 376 pass. Spike A: 69 pass.

Spike B's SQL Server consumer is built by run.sh, which CI runs.

The SQL Server package (#29) will reference the provider itself. If the provider's dependency has not moved by then, the pin has to go into that package, where it reaches consumers; #67's note on that carries over to #29.

🤖 Generated with Claude Code

…Cryptography.Pkcs

Microsoft.EntityFrameworkCore.SqlServer rc.3 brings Microsoft.Data.SqlClient
7.1.0, which asks for Pkcs 9.0.18, a version with a high and a moderate
advisory (fixed in 9.0.21). The four projects that reference the SQL Server
provider pin 9.0.23 until the provider's own dependency is patched.

Nothing that ships referenced the package.

Closes #67

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@CaffeinatedCoder CaffeinatedCoder added this to the 11.0.0 milestone Nov 12, 2026
@CaffeinatedCoder CaffeinatedCoder added dependencies Pull requests that update a dependency file chore Build, CI, packaging, refactoring with no behaviour change area/release Versioning, changelogs, release wiring labels Nov 12, 2026
@CaffeinatedCoder
CaffeinatedCoder merged commit 0b357e8 into main Nov 12, 2026
6 of 7 checks passed
@CaffeinatedCoder
CaffeinatedCoder deleted the chore/67-pkcs-advisory branch November 12, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/release Versioning, changelogs, release wiring chore Build, CI, packaging, refactoring with no behaviour change dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The test and spike projects restore System.Security.Cryptography.Pkcs 9.0.18, which has a high and a moderate advisory

1 participant