From b220413a9b5ed55fb1f565ac786a5c231da8bc87 Mon Sep 17 00:00:00 2001 From: Henry Heino <46334387+personalizedrefrigerator@users.noreply.github.com> Date: Thu, 15 Aug 2024 11:37:58 -0700 Subject: [PATCH 1/2] Desktop: Security: Fix HTML parsing bug (#10876) --- .../app-cli/tests/md_to_html/sanitize_20.html | 2 ++ .../app-cli/tests/md_to_html/sanitize_20.md | 2 ++ packages/fork-htmlparser2/README.md | 2 ++ packages/fork-htmlparser2/src/Tokenizer.ts | 21 +++++++++++++++++++ .../Events/34-not-alpha-tags.json | 12 +++++++++++ 5 files changed, 39 insertions(+) create mode 100644 packages/app-cli/tests/md_to_html/sanitize_20.html create mode 100644 packages/app-cli/tests/md_to_html/sanitize_20.md create mode 100644 packages/fork-htmlparser2/src/__fixtures__/Events/34-not-alpha-tags.json diff --git a/packages/app-cli/tests/md_to_html/sanitize_20.html b/packages/app-cli/tests/md_to_html/sanitize_20.html new file mode 100644 index 000000000..f731cd5a3 --- /dev/null +++ b/packages/app-cli/tests/md_to_html/sanitize_20.html @@ -0,0 +1,2 @@ +