Skip to content

Commit 808726e

Browse files
🐛 fix cyclonedx missing vector field #14874 (#14884)
1 parent ae9515b commit 808726e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dojo/tools/cyclonedx/json_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def _get_findings_json(self, file, test):
112112
rating.get("method") == "CVSSv3"
113113
or rating.get("method") == "CVSSv31"
114114
):
115-
raw_vector = rating["vector"]
115+
raw_vector = rating.get("vector", "")
116116
cvssv3 = Cyclonedxhelper()._get_cvssv3(raw_vector)
117117
severity = rating.get("severity")
118118
if cvssv3:

0 commit comments

Comments
 (0)