From cd18b0ef00aad1d4a9e1c5d860cd23f80f63c505 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Sat, 30 Nov 2024 16:13:13 -0500 Subject: [PATCH 1/2] test: Nokogiri's HTML5 "foreign style serialization" issue https://hackerone.com/reports/2503220 --- test/sanitizer_test.rb | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/test/sanitizer_test.rb b/test/sanitizer_test.rb index 8cfb523..e743b6f 100644 --- a/test/sanitizer_test.rb +++ b/test/sanitizer_test.rb @@ -976,6 +976,34 @@ def test_combination_of_svg_and_style_with_img_payload_2 assert_includes(acceptable_results, actual) end + def test_combination_of_svg_and_style_with_escaped_img_payload + # https://hackerone.com/reports/2503220 + input, tags = "