Open nulls opened 1 year ago
@akuleshov7 please review
@JustinB1eber
contributors[].contributions
field, if we replace 3 and 4 by credits[], we should add a credit[].contributions
7 I didn't get the point, does it matter to add this field because there is already a mapping from CVE to CWE?
We have alias
where can be specified mapping to CVE which already has mapping to CWE (like here https://nvd.nist.gov/vuln/detail/CVE-2023-29407).
But looks like it doesn't fit case when we create a new vulnerability which related to some CWE, but it's not alias to some existed CVE.
So please disregard point 7
1 and 2, we added it for convenience of displaying so my suggestion is not to remove it.
Having a field which can be calculated from another leads to additional validation on our side:
if severity[].level
is set, we should check that it's valid for provided severity[].score
and the same for severity[].score_num
.
Also, the JSON file is for communication between program (I don't think that human will read it), we can add additional calculated fields on UI only
for 3, 4, using the credits[] filed is good makes it more simplified, and there is a contributors[].contributions field, if we replace 3 and 4 by credits[], we should add a credit[].contributions
Will move then extra fields from contributors[]
to credits[]
.
for 5 and 6 my opinion is we should keep them inside the patched_detail[], so that this filed a more complete object.
Agree, taking into account that we want to move patched_detail[]
to range[]
Some fields can be calculated or taken as is from OSV schema:
severity[].level
can be calculated fromseverity[].score
-- https://www.balbix.com/insights/understanding-cvss-scores/#CVSS-Qualitative-Ratings-6severity[].score_num
can be calculated fromseverity[].score
-- https://nvd.nist.gov/vuln-metrics/cvss/v3-calculatorcontributors[].name
can be taken fromcredits[].name
contributors[].email
can be taken fromcredits[].contact[]
patches_detail[].patch_url
can be taken fromreferences[]
withtype = FIX
patches_detail[].issue_url
can be taken fromreferences[]
withtype = REPORT
cwe and cve are different: https://www.automox.com/blog/vulnerabilities-software-weaknesses-acronym-breakdown, but there is a mapping from CVE to CWE: https://nvd.nist.gov/vuln/detail/CVE-2023-29407 (for example)cwe_ids[]
can be calculated fromaliases[]
with prefixCWE-