Better code related to CVSS

This commit is contained in:
erwanlr
2020-04-16 10:06:28 +02:00
parent f146ee7e9f
commit f4a6674eed
3 changed files with 6 additions and 6 deletions

View File

@@ -16,14 +16,12 @@ module WPScan
end
end
cvss = { score: json_data['cvss_risk_score'], vector: json_data['cvss_vector'] } if json_data['cvss_risk_score']
new(
json_data['title'],
references: references,
type: json_data['vuln_type'],
fixed_in: json_data['fixed_in'],
cvss: cvss
cvss: json_data['cvss']&.symbolize_keys
)
end
end