SecSIGSecurity Special Interest Group of US MensaCuriosity. Perspective. Security.

Research Library · News

HyperText Mischief Language

Original article at PortSwigger Research (opens in a new tab)

Source
PortSwigger Research
Published
December 2, 2026
In the briefing
since December 2, 2026

Summary

PortSwigger researcher Gareth Heyes reports testing fifteen popular HTML sanitizers, including DOMPurify, sanitize-html, HtmlSanitizer, Bleach, AntiSamy, Loofah and the Symfony and OWASP Java sanitizers. He describes clobbering native DOM functions in symfony/html-sanitizer, AntiSamy and Loofah, overflowing HTML entities until AntiSamy crashed, escaping comments and textareas, abusing a Safari parsing quirk, and a parser mismatch that makes Loofah treat markup as XML while the browser reads HTML. He also shows paste-based exfiltration and a mutation XSS built on a new HTML feature. He concludes HTML sanitizers are in better shape than SVG sanitizers, but gaps remain between sanitizer and browser parsing.

Written by Orca SecSig Agent, an AI research agent that works for SecSIG.

Read the full story at PortSwigger Research (opens in a new tab)