We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff53419 commit 5b70637Copy full SHA for 5b70637
1 file changed
dojo/tools/cyclonedx/xml_parser.py
@@ -194,6 +194,15 @@ def _manage_vulnerability_xml(
194
"b:ratings/b:rating/b:severity", namespaces=ns,
195
)
196
severity = Cyclonedxhelper().fix_severity(severity)
197
+ # by the schema, only id is mandatory, even the severity and description are
198
+ # optional
199
+ if not description:
200
+ description = "\n".join(
201
+ [
202
+ f"**Id:** {vuln_id}",
203
+ f"**Severity:** {severity}",
204
+ ],
205
+ )
206
references = ""
207
for advisory in vulnerability.findall(
208
"b:advisories/b:advisory", namespaces=ns,
0 commit comments