Skip to content

Commit baf0d0c

Browse files
committed
Fixed error with API Format for CVSS V2.0 CVEs
1 parent 23e93aa commit baf0d0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/helpers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def nist_check(cve_id):
8686
for metric in unique_cve.get("cve").get("metrics").get("cvssMetricV2"):
8787
results = {"cvss_version": "CVSS 2.0",
8888
"cvss_baseScore": float(metric.get("cvssData").get("baseScore")),
89-
"cvss_severity": metric.get("cvssData").get("baseSeverity"),
89+
"cvss_severity": metric.get("baseSeverity"),
9090
"cisa_kev": cisa_kev}
9191
return results
9292
elif unique_cve.get("cve").get("vulnStatus") == "Awaiting Analysis":

0 commit comments

Comments
 (0)