Better code related to CVSS
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user