DependencyTrack / DependencyTrack/dependency-track

Update the GET /v1/vulnerability API and frontend to allow for filtering only vulnerabilities that affect catalogued projects

Open
#3,110 2 comments 5 reactions 0 assignees View on GitHub
enhancement p2
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.