From e52d08cbd792bbe9b76e3f0fc0cde53103735b44 Mon Sep 17 00:00:00 2001 From: testaccount90009 <122134756+testaccount90009@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:45:52 -0800 Subject: [PATCH] Update parser.py --- dojo/tools/mend/parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dojo/tools/mend/parser.py b/dojo/tools/mend/parser.py index 478aa3b812..781966e2d4 100644 --- a/dojo/tools/mend/parser.py +++ b/dojo/tools/mend/parser.py @@ -102,8 +102,8 @@ def _build_common_output(node, lib_name=None): # homogeneous behavior. if "cvss3_severity" in node: cvss_sev = node.get("cvss3_severity") - else: - cvss_sev = node.get("severity") + elif "vulnerability" in node: + cvss_sev = node["vulnerability"].get("severity") severity = cvss_sev.lower().capitalize() cvss3_score = node.get("cvss3_score", None)