[Feature]: Allow excluding vulnerabilities from output of `dotnet list package --vulnerable`
#11 926 ouverte le 29 juin 2022
Métriques du dépôt
- Stars
- (1 459 stars)
- Métriques de merge PR
- (Merge moyen 464j 23h) (1 PR mergée en 30 j)
Description
NuGet Product(s) Involved
dotnet.exe
The Elevator Pitch
Allow excluding vulnerabilities from the output of dotnet list package --vulnerable [--include-transitive] using another command line flag or config file.
Additional Context and Details
We scan for NuGet packages with vulnerabilities regularly on our build server by running dotnet list package --vulnerable --include-transitive. Sometimes it's not practical to upgrade a package version to properly fix the vulnerability, but we don't want to be notified of it anymore (because we have either determined that it doesn't apply to us, made a code change to mitigate it or accepted the risk). It would be great to be able to exclude specific vulnerabilities, e.g. by the advisory URL or perhaps just the ID part of it (CVE or GHSA ID), e.g.
dotnet list package --vulnerable --include-transitive --exclude-vulnerabilities GHSA-qpvx-gpqm-g98j,GHSA-mv2r-q4g5-j8q5