|
<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.
cve-website/src/components/AdpVulnerabilityEnrichment.vue
Lines 140 to 141 in 103e3c1
For example, https://cveawg.mitre.org/api/cve/CVE-2023-0594 has:
and https://www.cve.org/CVERecord?id=CVE-2023-0594 renders this as:
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.