Language Server attributes package vulnerability warning to wrong project (MessagePack shown for project that doesn't use it)
Maintainer thường phản hồi trong vòng 1 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
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- csharp, typescript, vscode
- Lĩnh vực
- developer-experience, tooling
Hướng nghiên cứu
Tái hiện cảnh báo trong đầu ra C# và nhật ký Language Server bằng cách sử dụng thiết lập tham chiếu dự án được liệt kê. Bắt đầu với dotnet list Boilerplate.Localization.UnitTests/Boilerplate.Localization.UnitTests.csproj package --include-transitive và hướng dẫn chung về việc thu thập nhật ký trong SUPPORT.md; hoàn tất khi lỗ hổng được quy cho dự án thực sự tham chiếu đến MessagePack.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Environment data
dotnet --info output:
VS Code version:
C# Extension version:
C# logs
C# output window contents:
[Warn - 8:57:54 AM] [solution/open] [LanguageServerProjectSystem] Warning while loading /Users/forgery/Work/Guru/Boilerplate/src/Boilerplate.Localization.UnitTests/Boilerplate.Localization.UnitTests.csproj: Package 'MessagePack' 2.5.140 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-4qm4-8hg2-g2xm
See https://github.com/dotnet/vscode-csharp/blob/main/SUPPORT.md#collecting-general-logs for collecting more detailed logs
Steps to reproduce
- Open a solution where one project references MessagePack 2.5.140 (e.g. Boilerplate.Orm) and another (e.g. Boilerplate.Localization.UnitTests) does not
- Ensure the project without MessagePack references only projects that also do not use MessagePack (e.g. Localization.UnitTests → Localization)
- Open the solution in VS Code
- Check C# output / Language Server logs
Expected behavior
The MessagePack vulnerability warning should be shown for the project that actually references MessagePack (e.g. Boilerplate.Orm), not for projects that do not depend on it
Actual behavior
The warning is shown for Boilerplate.Localization.UnitTests, which does not reference MessagePack. Verified with dotnet list Boilerplate.Localization.UnitTests/Boilerplate.Localization.UnitTests.csproj package --include-transitive — MessagePack does not appear in the dependency tree
Additional context
- MessagePack 2.5.140 is a direct dependency of Boilerplate.Orm
- Boilerplate.Localization.UnitTests only references Boilerplate.Localization (ProjectReference), which has no package dependencies
- The Language Server attributes the vulnerability to the wrong project
- Ngôn ngữ chính
- TypeScript
- Star
- 3.1k
- Fork
- 742
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 53
Chuẩn bị môi trường
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.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của dotnet/vscode-csharp
-
Remove temporary .NET 11 CI container digest pinCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởInfrastructure Test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
dotnet/vscode-csharp#9791 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
untriaged
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
dotnet/vscode-csharp#9944 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
C# extension crach in VS CodeĐang mởuntriaged
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
dotnet/vscode-csharp#9940 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug C#DK
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
dotnet/vscode-csharp#9910 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
aĐang mởC#DK untriaged
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
dotnet/vscode-csharp#9901 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của dotnet/vscode-csharp
Issue tương tự
-
Add: ESP 2 ROĐang mởapproved check:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
ipaas: Configure form shows "Deploy to apply." and "Overrides selected Link" when they don't applyĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
wso2/integration-control-plane#1118 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
File reporting form UI DesignĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
UTDNebula/utd-notebook#311 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày