Skip to content

Commit 0d59af9

Browse files
committed
feat: add CVE to vulnerability_ids in CVE parser
Map the CVE field to unsaved_vulnerability_ids so it appears in the Vulnerability IDs column in DefectDojo, in addition to vuln_id_from_tool. Authored by T. Walker - DefectDojo
1 parent 1a1d1ae commit 0d59af9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

dojo/tools/qualys_vmdr/cve_parser.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,9 @@ def _create_finding(self, row):
8787
)
8888
finding.unsaved_tags = parse_tags(row.get("Asset Tags", ""))
8989

90+
# Add CVE to vulnerability_ids for proper CVE tracking
91+
cve = row.get("CVE", "")
92+
if cve:
93+
finding.unsaved_vulnerability_ids = [cve]
94+
9095
return finding

0 commit comments

Comments
 (0)