DependencyTrack / DependencyTrack/dependency-track
API for CPEs don't work
- Dominant language
- Java
- Stars
- 4.2k
- Forks
- 811
- Avg merge
- 8h 39m
- Merged PRs (30d)
- 237
Description
### Current Behavior

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
Assessment
This issue has not been assessed yet.