CWE

CWE categories

This API endpoint returns a given set of CWE categories by identifier. Multiple identifiers are separated by a comma. If keyword "all" is given, all CWE categories are returned.

get/cwe/category/{id(s)}

Path parameters

id(s)string required

CWE Category ID(s) - comma separated

Response

success

Example response

{
  "Categories": [
    {
      "Name": "Category Name",
      "Status": "Draft",
      "Summary": "A brief summary of the category",
      "Taxonomy_Mappings": [
        {
          "TaxonomyName": "OWASP Top Ten",
          "EntryID": "A1",
          "EntryName": "Cross Site Scription (XSS)",
          "MappingFit": "Exact"
        }
      ],
      "Relationships": [
        {
          "CWE_ID": "123",
          "View_ID": "321"
        }
      ],
      "References": [
        {
          "ExternalReferenceID": "REF-2",
          "Section": "Chapter 11, Page 384",
          "Authors": [
            "John Doe",
            "Jane Doe"
          ],
          "Title": "An Analysis of All That is Wrong With Software Development",
          "Edition": "2nd Edition",
          "PublicationYear": "2000",
          "PublicationMonth": "01",
          "PublicationDay": "01",
          "Publisher": "Perfect Publishing",
          "URL": "https://example.com",
          "URLDate": "2021-10-24"
        }
      ],
      "Notes": [
        {
          "Type": "Relationship",
          "Note": "A note on the relationship"
        }
      ],
      "Content_History": [
        {
          "Type": "Submission",
          "SubmissionName": "PLOVER",
          "SubmissionDate": "2006-07-19"
        },
        {
          "Type": "Modification",
          "ModificationName": "John Doe",
          "ModificationOrganization": "ACME Corp",
          "ModificationDate": "2008-07-01",
          "ModificationComment": "Updated Description"
        },
        {
          "Type": "Rename",
          "PreviousEntryName": "Old name",
          "Date": "2000-01-04"
        }
      ]
    }
  ]
}

Changes

Changed in 3 of the 5 revisions of this API.212

  • 655593db051011See the full diff
    • the response's body type changed from array to object for status

      response-body-type-changed

    • added the optional property to the response with the status

      response-optional-property-added

    • the response property /// became required for the status

      response-property-became-required

  • dd1a325c030211See the full diff
    • the response's body type changed from object to array for status

      response-body-type-changed

    • removed the optional property from the response with the status

      response-optional-property-removed

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