DependencyTrack / DependencyTrack/dependency-track
Update the GET /v1/vulnerability API and frontend to allow for filtering only vulnerabilities that affect catalogued projects
- Dominant language
- Java
- Stars
- 4.2k
- Forks
- 811
- Avg merge
- 8h 39m
- Merged PRs (30d)
- 237
Description
### Current Behavior
The API GET /v1/vulnerability Returns a list of all vulnerabilities.
Likewise the frontend http://localhost:8080/vulnerabilities URL returns all known vulnerabilities.
### Proposed Behavior
The API GET /v1/vulnerability accepts optional parameter and / or
that allows to retrieve only the vulnerabilities affecting projects or vulnerabilities affecting >= affectedProjectCount projects.
Likewise, the frontend for vulnerabilities could have a toggle < Active Vulnerabilities> that would filter out the vulnerabilities not present in the catalogued projects. .
### 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 enhancement was already requested
Contributor guide
Assessment
This issue has not been assessed yet.