issues
search
RedHatProductSecurity
/
cvss
CVSS2/3/4 library with interactive calculator for Python 2 and Python 3
GNU Lesser General Public License v3.0
79
stars
28
forks
source link
CVSSv4, fixes to unexpected severity results
#49
Closed
jobiewinserapck
closed
8 months ago
jobiewinserapck
commented
8 months ago
falcochu noticed that the json 'baseSeverity' was not returning a result and the severity for a score of 6.9 was incorrect
The severity calculation was evaluating float(6.9) > D("6.9"), it now evaluates float(6.9) <= float(6.9) correctly
json 'baseSeverity' now correctly returns the object's severity
Added a severity test for CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L
Added as_json test evaluation to run_tests_from_file
Added as_json tests to test_severity