CWE

CWE ID type

This API endpoint returns metadata on specified CWE IDs.

get/cwe/{id(s)}

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

Changed in 2 of the 5 revisions of this API.11

    • added the new class_weakness enum value to the items/Type response property for the response status 200

      response-property-enum-value-added

    • removed the class_weakness enum value from the items/Type response property for the response status 200

      response-property-enum-value-removed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog