CWE

This API endpoint returns metadata on specified CWE IDs.

get/cwe/{id(s)}

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    none declared

Path parameters

id(s)string required

comma separated

Response

success

IDstring integer required

CWE ID

Type'category' | 'view' | 'pillar_weakness' | 'base_weakness' | 'variant_weakness' | 'chain_weakness' | 'class_weakness' | 'compound_weakness' | 'deprecated_weakness' | 'deprecated_category' | 'deprecated_view' required

Type of CWE object

Example response

[
  {
    "ID": "79",
    "type": "base_weakness"
  },
  {
    "id": "1000",
    "type": "view"
  }
]

Changes

    • warning

      added the new class_weakness enum value to the / response property for the response status

    • info

      removed the class_weakness enum value from the / response property for the response status