Skip to content

[BUG] Coverlet.collector dependencies are undeclared and hard-copied as package contents #1785

@rucamzu-r2r

Description

@rucamzu-r2r

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions