Skip to content

Commit

Permalink
add: [vulnerability_lookup, variot] Parsing CVSS v2 too
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisr3d committed Dec 16, 2024
1 parent 71e1e11 commit f829c75
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ def _parse_variot_description(self, query_results):
if query_results.get('cvss', {}).get('data'):
cvss = {}
for cvss_data in query_results['cvss']['data']:
for cvss_v2 in cvss_data['cvssV2']:
cvss[float(cvss_v2['trust'])] = cvss_v2
for cvss_v3 in cvss_data['cvssV3']:
cvss[float(cvss_v3['trust'])] = cvss_v3
if cvss:
Expand Down

0 comments on commit f829c75

Please sign in to comment.