vulnerabilities: Improve the representation of the severity and its handling #5597
Labels
advisor
About the advisor tool
enhancement
Issues that are considered to be enhancements
evaluator
About the evaluator tool
model
About the data model
advisor data model
The data model of the severity of vulnerabilities aka.
VulnerabilityReference
is not very strictly typed.So, it provides too much flexibility which introduces unnecessary complexity and the handling in multiple places is not as straight forward as it could be. A more stricter typing would help, e.g.:
enum
for the known scoring systemsthe severity, e.g. in CVSS this would be the vector (not the score).
Question: Should we use a severity list (like OSV does) to allow multiple representation of (the same) severity in different scoring systems, or stick to a single one? (I'd slightly tend towards a list to allow for a straight forward / non-opinionated mapping from the OSV data model)
evaluator / policy rules
In the evaluator the use case is to take vulnerabilities from the advisor and create violations if any.
The relevant part / question in this context is how to best map the severity tuples mentioned above, to
the severity of a rule violation. I propose the following
evaluated model
Fix the conversion from severity to text.
The text was updated successfully, but these errors were encountered: