DependencyTrack / DependencyTrack/dependency-track

API for CPEs don't work

Open
#2,463 5 comments 0 reactions 0 assignees View on GitHub
api docs defect in triage
Dominant language
Java
Stars
4.2k
Forks
811
Avg merge
8h 39m
Merged PRs (30d)
237

Description

### Current Behavior

![CPE](https://user-images.githubusercontent.com/41997200/217196406-f8dec79c-24fe-4774-bd48-4540a3227ed9.png)
Hello,
This API and many others should return a CPE in output but none of them do it.
Also Cyclonedx (maven, gradle and nodejs) don't have a field for it, although, inside the tool, in the Vulnerabilities details it is possibile to see them in the "details" tab.
Is there any way to get a full of list of CPEs for a Component, or even better, for a project?

### Steps to Reproduce

1. Have components with vulnerabilities
2. REST APIs calls to export data of the components

### Expected Behavior

To value the CPE field in APIs outputs, for those component where that same value is shown by graphic interface

### Dependency-Track Version

4.7.0

### Dependency-Track Distribution

Container Image

### Database Server

PostgreSQL

### Database Server Version

_No response_

### Browser

Mozilla Firefox

### 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

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.