Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.owasp/dependency-check-maven
  4. ›
  5. GMS-2023-6299

GMS-2023-6299: nvdApiKey is logged in debug mode

December 15, 2023 (updated January 22, 2024)

Summary

The value of nvdApiKey configuration parameter is logged in clear text in debug mode.

Details

The NVD API key is a kind of secret and should be treated like other secrets when logging in debug mode. Expecting the same behavior as for several password configurations: just print ******

Note that while the NVD API Key is an access token for the NVD API - they are not that sensitive. The only thing an NVD API Token grants is a higher rate limit when making calls to publicly available data. The data available from the NVD API is the same whether you have an API Key or not.

PoC

The nvdApiKey is configured to use an environment variable; when running mvn -X dependency-check:check the clear value is logged twice.

Impact

The NVD API key is a kind of secret and should not be exposed. If stolen, an attacker can use this key to obtain already public information.

References

  • github.com/advisories/GHSA-qqhq-8r2c-c3f5
  • github.com/jeremylong/DependencyCheck/security/advisories/GHSA-qqhq-8r2c-c3f5

Code Behaviors & Features

Detect and mitigate GMS-2023-6299 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 9.0.0 before 9.0.6

Fixed versions

  • 9.0.6

Solution

Upgrade to version 9.0.6 or above.

Source file

maven/org.owasp/dependency-check-maven/GMS-2023-6299.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:49 +0000.