What’s Vulnerable › Vulnerabilities
CVE-2022-39351: Dependency-Track vulnerable to logging of API keys in clear text when handling API requests using keys with insufficient permissions
- Severity: medium (CVSS 4.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-10-25 · updated 2026-06-17
- Weakness: CWE-312
Description
Dependency-Track is a Component Analysis platform that allows organizations to identify and reduce risk in the software supply chain. Prior to version 4.6.0, performing an API request using a valid API key with insufficient permissions causes the API key to be written to Dependency-Track's audit log in clear text. Actors with access to the audit log can exploit this flaw to gain access to valid API keys. The issue has been fixed in Dependency-Track 4.6.0. Instead of logging the entire API key, only the last 4 characters of the key will be logged. It is strongly recommended to check historic logs for occurrences of this behavior, and re-generating API keys in case of leakage.
Affected products
- DependencyTrack dependency-track: before 4.6.0 — fixed in 4.6.0
How to fix
Upgrade to a fixed version: DependencyTrack dependency-track 4.6.0. Check the vendor advisory for mitigations.
References
- https://docs.dependencytrack.org/changelog/
- https://github.com/DependencyTrack/dependency-track/blob/4.5.0/src/main/docker/logback.xml
- https://github.com/DependencyTrack/dependency-track/security/advisories/GHSA-gh7v-4hxp-gqp4
- https://docs.dependencytrack.org/changelog/
- https://github.com/DependencyTrack/dependency-track/blob/4.5.0/src/main/docker/logback.xml
- https://github.com/DependencyTrack/dependency-track/security/advisories/GHSA-gh7v-4hxp-gqp4
Get alerted when CVE-2022-39351 or the next vulnerability affects your stack