From 1f36ffdf86ffc3ad3c3b9a9ed139311224f23167 Mon Sep 17 00:00:00 2001 From: Marco Date: Thu, 31 Jul 2025 19:59:26 +0200 Subject: [PATCH] Fix: Add pluginID as unique_id_from_tool for Tenable XML parser --- dojo/tools/tenable/xml_format.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dojo/tools/tenable/xml_format.py b/dojo/tools/tenable/xml_format.py index 8949ba7e4db..5ea2e4bdc78 100644 --- a/dojo/tools/tenable/xml_format.py +++ b/dojo/tools/tenable/xml_format.py @@ -275,6 +275,9 @@ def get_findings(self, filename: str, test: Test) -> list: if cvss is not None: severity = self.get_cvss_severity(cvss) + # set the pluginID + plugin_id = item.attrib.get("pluginID") + # Determine the current entry has already been parsed in # this report dupe_key = severity + title @@ -290,6 +293,7 @@ def get_findings(self, filename: str, test: Test) -> list: cwe=cwe, cvssv3=cvssv3, cvssv3_score=cvssv3_score, + unique_id_from_tool=plugin_id, ) find.unsaved_endpoints = [] find.unsaved_vulnerability_ids = []