Skip to content

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

Closed

Description

@CaffeinatedCoder

Problem

Every build of the test project warns:

  • NU1903: System.Security.Cryptography.Pkcs 9.0.18 has a known high severity vulnerability, GHSA-846f-f764-76mx.
  • NU1902: the same package has a known moderate severity vulnerability, GHSA-2fmv-rv2c-59x7.

dotnet nuget why on 2026-11-12:

CodoMetis.EFCore.SchemaKit.Tests [net11.0]
└── Microsoft.EntityFrameworkCore.SqlServer 11.0.0-rc.3.26522.148
    └── Microsoft.Data.SqlClient 7.1.0
        └── System.Security.Cryptography.Pkcs 9.0.18

The kernel (src/CodoMetis.EFCore.SchemaKit) references Microsoft.EntityFrameworkCore.Relational only, so nothing that ships carries the package. It reaches the test project and the spikes that reference the SQL Server provider (A and E).

It matters before it ships: the SQL Server package (#29) will depend on Microsoft.EntityFrameworkCore.SqlServer and would hand the advisory to consumers unless the provider's own dependency has moved by then.

Change

Pin a patched System.Security.Cryptography.Pkcs directly in the projects that restore it, with a comment naming the advisories and the dependency path, to be removed when Microsoft.Data.SqlClient brings a patched version itself. Check which version fixes both advisories first.

Done when

The test project and the spikes build without NU1902 and NU1903, and the pin says when it can go.

Activity

  1. added this to the 11.0.0 milestone on Nov 12, 2026
  2. added
    dependencies
    chore
    area/release
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/releasechoredependencies

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions