QID 580521

QID 580521: Enum Fields Response Mismatch Schema Definition

In this scenario fields of string type with enum values defined are tested. This test is skipped for all enum fields where values are not defined. Values that are not part of the defined enum values are sent to the server for the endpoint being tested.The expectation is that server will reject the request as invalid, instead of accepting the undefined value or defaulting to a defined enum value. The response from server for requests with value not defined in swagger file should match the schema definition for invalid request.
Based on the response using requests with invalid values it is determined that the request with invalid value is rejected. The response code to unexpected values in enum fields is expected but response does not match schema definition for field being tested.

Enforcing defined values and responses in swagger file for enum fields will help provide clarity to the API users and avoid abuse of the API by hackers. Since handling enum field types is not adhering to the schema, the current end point is potential to resource exhaustion attacks.

  • CVSS V3 rated as High - 6.3 severity.
  • CVSS V2 rated as Medium - 5 severity.
  • Solution
    Please ensure that the server rejects invalid requests with documented error code and schemas. Add input validations and ensure the server implementation is aligned with swagger file.
    Vendor References

    CVEs related to QID 580521

    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