QID 570062

QID 570062: API Keys Exposure Via Parameters

Handling API keys should be thought through carefully during design. The key presents another level of security to the APIs. The keys should not be exposed. Adding API keys as part of parameters would result in credentials being exposed . Analysis of swagger file resulted in determining API keys being added to parameters which is sensitive content exposure. API keys should not be added to path, query parameters.

API Keys can be exposed if they are stored in cookies or passed as parameters. Presence of API keys in parameters results in swagger not being spec compliant and hence results in an error.

  • CVSS V3 rated as Medium - 3.3 severity.
  • CVSS V2 rated as Low - 0 severity.
  • Solution
    Remove credentials from URL visible parameters, like query and path parameters. You can use header to save the API keys. For example:

    openapi: "3.0" components: securitySchemes: "APIKeyInHeader": type: "APIKey" in: "header"

    Vendor References

    CVEs related to QID 570062

    Software Advisories
    Advisory ID Software Component Link

    © CVE.report 2026

    Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

    CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

    Free CVE JSON API cve.report/api

    CVE.report and Source URL Uptime Status status.cve.report