DependencyTrack / DependencyTrack/dependency-track
Vulnerability Audit Grouped View: Affected Projects count includes surpressed vulnerabilities
- Dominant language
- Java
- Stars
- 4.2k
- Forks
- 811
- Avg merge
- 8h 39m
- Merged PRs (30d)
- 237
Description
### Current Behavior
For some vulnerabilities it shows affectedProjects == 1 in Vulnerability Audit Grouped view.
But in reality the affected project count is zero. When clikcing on the VulnID and going to the Vulnerability page it shows affectedProjects==0, which is correct.


### Steps to Reproduce
Look for vulnerability that affects at least 2 projects.
Observe in Vulnerability Audit View Grouped it shows 2 affected projects.
Surpress the vulnerability for 1 project
Observe in Vulnerability Audit View Grouped it still shows 2 affected projects.
Observe that on the Vulnerability details page it shows 1 affected projects.
### Expected Behavior
Affected projects should only count non-surpressed vulnerabilities?
Alternatively add a filter option to let the user decide.
### Dependency-Track Version
4.12.2
### Dependency-Track Distribution
Container Image
### Database Server
PostgreSQL
### Database Server Version
_No response_
### Browser
Google Chrome
### Checklist
- [x] I have read and understand the [contributing guidelines](https://github.com/DependencyTrack/dependency-track/blob/master/CONTRIBUTING.md#filing-issues)
- [x] I have checked the [existing issues](https://github.com/DependencyTrack/dependency-track/issues) for whether this defect was already reported
Contributor guide
Assessment
This issue has not been assessed yet.