From 041c068cec516474d61862faf3910b26c7e10073 Mon Sep 17 00:00:00 2001 From: Ryan Grove Date: Mon, 26 Jun 2023 11:31:55 -0700 Subject: [PATCH 1/3] Escape ` element' do + before do + @s = Sanitize.new(Sanitize::Config::RELAXED) + end + + it 'is not possible to prematurely end a ], + @s.fragment(%[]) + ) + end + end end From 773d927bc457f5cae21edc059654abc98101413c Mon Sep 17 00:00:00 2001 From: Ryan Grove Date: Mon, 26 Jun 2023 13:43:07 -0700 Subject: [PATCH 2/3] Update history --- HISTORY.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/HISTORY.md b/HISTORY.md index 4d14d0c..287aa0b 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,22 @@ # Sanitize History +## 6.0.2 (2023-07-06) + +### Bug Fixes + +* CVE-2023-36823: Fixed an HTML+CSS sanitization bypass that could allow XSS + (cross-site scripting). This issue affects Sanitize versions 3.0.0 through + 6.0.1. + + When using Sanitize's relaxed config or a custom config that allows `