Microsoft.Data.SqlClient installs System.Security.Crytography.Pkcs 9.x.x which is vulnerable

Aperta
#4,958 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
18/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
csharp, sql

Direzione di ricerca

The vulnerable package is System.Security.Cryptography.Pkcs pulled in as a transitive dependency of Microsoft.Data.SqlClient; the payload names no file or test. Start from the project's package references and the dependency declared for the target framework, then check which Pkcs version resolves. Done would mean the dependency is updated or pinned so the reported version no longer resolves, confirmed by a restore and a vulnerability audit.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug

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

Additional context
Issue has been explained.

Lingua principale
C#
Stelle
1k
Fork
352
Merge medio
4g 8h
PR unite (30g)
100

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di dotnet/SqlClient

Tutte le issue di dotnet/SqlClient

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.