-
Notifications
You must be signed in to change notification settings - Fork 393
Description
Describe the bug
The coverlet.collector nuget package doesn't declare its dependencies e.g. NewtonSoft.Json, and instead includes hard copies of their DLLs as package contents.
To Reproduce
Please see the contents of any version of the coverlet.collector nuget package (confirmed 3.1.2 and the latest 6.0.4).
Expected behavior
The coverlet.collector nuget package does declare its dependencies and doesn't include their binaries as package contents. Dependencies shouldn't be part of the package.
Actual behavior
The coverlet.collector nuget package doesn't declare any dependencies: https://www.nuget.org/packages/coverlet.collector#dependencies-body-tab
The package contents include DLLs from third-party dependencies e.g. NewtonSoft.Json: https://nuget.info/packages/coverlet.collector/6.0.4
Configuration (please complete the following information):
N/A
Additional context
This issue was discovered while tracking CVE-2024-21907, after JetBrains Rider alerted about it in relation to coverlet.collector 3.1.2. It was confusing because the vulnerability advisor targets Newtonsoft.Json and coverlet.collector showed no dependencies.
This practice makes it harder to track and address security vulnerabilities, and also do proper dependency resolution.