From 20ab7033b8b113f74622bcb8feb6d8f2ec566882 Mon Sep 17 00:00:00 2001 From: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com> Date: Wed, 11 Oct 2023 13:38:07 +0600 Subject: [PATCH] fix(report): add escaping quotes in misconfig Title for asff template (#5351) --- contrib/asff.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/asff.tpl b/contrib/asff.tpl index 663d97c6619e..4c33de7e0b49 100644 --- a/contrib/asff.tpl +++ b/contrib/asff.tpl @@ -91,7 +91,7 @@ "Severity": { "Label": "{{ $severity }}" }, - "Title": "Trivy found a misconfiguration in {{ $target }}: {{ .Title }}", + "Title": "Trivy found a misconfiguration in {{ $target }}: {{ escapeString .Title }}", "Description": {{ escapeString $description | printf "%q" }}, "Remediation": { "Recommendation": {