mirror of https://github.com/MISP/misp-modules
fix: [cve_advanced] Some CVEs are not in CWE format but in NVD-CWE-Other
parent
51e6122c67
commit
0752628de5
|
@ -87,7 +87,7 @@ class VulnerabilityParser():
|
|||
)
|
||||
|
||||
def __parse_weakness(self, vulnerability_uuid):
|
||||
cwe_string, cwe_id = self.vulnerability['cwe'].split('-')
|
||||
cwe_string, cwe_id = self.vulnerability['cwe'].split('-')[:2]
|
||||
cwes = requests.get(self.api_url.replace('/cve/', '/cwe'))
|
||||
if cwes.status_code == 200:
|
||||
for cwe in cwes.json():
|
||||
|
|
Loading…
Reference in New Issue