From 2ad0405643842c2bba42c23be6036173d0810a6d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 17:05:35 +0000 Subject: [PATCH] test: add XSS bypass bug-pin tests for StringUtils.sanitize() (Issue #8) 8 new bug-pin tests documenting the known XSS bypass vectors in sanitize(). Each test asserts the current broken behaviour so future changes surface if a bypass is accidentally removed while others remain. Bypass vectors pinned: - (event handler on img tag) - (event handler on svg tag) - (all-uppercase not stripped) - (mixed-case not stripped) - (space before > on opening tag) - javascript: protocol in href/src - (event handler on body) - "; + assertEquals(payload, StringUtils.sanitize(payload), + "BUG: