We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dfdfe7e + 9b09ec8 commit b291f96Copy full SHA for b291f96
1 file changed
dojo/tools/mend/parser.py
@@ -203,9 +203,12 @@ def _build_common_output(node, lib_name=None):
203
impact=impact if impact is not None else None,
204
steps_to_reproduce="**Locations Found**: " + ", ".join(locations) if locations is not None else None,
205
kev_date=kev_date if kev_date is not None else None,
206
- known_exploited=known_exploited if known_exploited is not None else None,
207
- ransomware_used=ransomware_used if ransomware_used is not None else None,
208
)
+ # only overwrite default values if they are not None #12989
+ if known_exploited is not None:
209
+ new_finding.known_exploited = known_exploited
210
+ if ransomware_used is not None:
211
+ new_finding.ransomware_used = ransomware_used
212
if cve:
213
new_finding.unsaved_vulnerability_ids = [cve]
214
0 commit comments