Skip to content

meaning of a CWE ID is sometimes omitted #3019

@ElectricNroff

Description

@ElectricNroff

<span class="has-text-weight-bold">{{ cwe.cweId }}<span v-if="cwe.description.length > 0">: </span></span>
<span v-if="cwe.description.length > 0">{{ cwe.description }}</span>

For example, https://cveawg.mitre.org/api/cve/CVE-2023-0594 has:

"problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-79",
              "description": "CWE-79",

and https://www.cve.org/CVERecord?id=CVE-2023-0594 renders this as:

CWE
Learn more
CWE-79: CWE-79

I feel that, if cweId is present, then fields such as problemTypes[0].descriptions[0].description should be ignored, and the text to the right of the colon should be obtained from the CWE project, e.g., https://cwe-api.mitre.org/api/v1/cwe/weakness/79 under weaknesses[0].Name in this situation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions