From 3955e8cbad3dac9f891cfcd462341e766d6cc5ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 23 Apr 2020 11:35:43 +0200 Subject: [PATCH] Security: Fix annotation popup XSS vulnerability (#23813) Co-authored-by: Marcus Efraimsson --- public/app/features/annotations/annotation_tooltip.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/annotations/annotation_tooltip.ts b/public/app/features/annotations/annotation_tooltip.ts index 7c7f17c4f9e..7af08278183 100644 --- a/public/app/features/annotations/annotation_tooltip.ts +++ b/public/app/features/annotations/annotation_tooltip.ts @@ -72,7 +72,7 @@ export function annotationTooltipDirective( tooltip += '
'; if (text) { - tooltip += '
' + sanitizeString(text.replace(/\n/g, '
')) + '
'; + tooltip += '
' + sanitizeString(text.replace(/\n/g, '
')) + '
'; } const tags = event.tags;