From 37bf117f5281ff0467461cd6643d720a3cbb7039 Mon Sep 17 00:00:00 2001 From: dogboat Date: Wed, 18 Feb 2026 15:00:25 -0500 Subject: [PATCH] fix for ms defender parser: use endpoint instead of url when not v3 --- dojo/tools/ms_defender/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo/tools/ms_defender/parser.py b/dojo/tools/ms_defender/parser.py index bbc2b0c0761..cf5b9b36f31 100644 --- a/dojo/tools/ms_defender/parser.py +++ b/dojo/tools/ms_defender/parser.py @@ -194,7 +194,7 @@ def process_json_with_machine_info(self, vulnerability, machine): # TODO: Delete this after the move to Locations if "computerDnsName" in machine and machine["computerDnsName"] is not None: host = str(machine["computerDnsName"]).replace(" ", "").replace("(", "_").replace(")", "_") - locations.append(URL(host=host)) + locations.append(Endpoint(host=host)) if "lastIpAddress" in machine and machine["lastIpAddress"] is not None: locations.append(Endpoint(host=str(machine["lastIpAddress"]))) if "lastExternalIpAddress" in machine and machine["lastExternalIpAddress"] is not None: