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

Đang mở
#4,958 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
18/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp, sql
Lĩnh vực
databases, security

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C#
Star
1k
Fork
352
Merge trung bình
4 ngày 8 giờ
Pull request đã merge (30 ngày)
100

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của dotnet/SqlClient

Tất cả issue của dotnet/SqlClient

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.