Cross-site scripting in HtmlSanitizer - #VU159569
Published: November 6, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to execute JavaScript in a victim's browser through cross-site scripting.
The vulnerability exists due to HtmlSanitizer's SanitizeDom(string) leaving input attributes merged onto document wrapper elements unsanitized when processing attacker-controlled HTML. An unauthenticated remote attacker can submit HTML containing event handlers that execute when a victim views an application response rendered from the returned document with its wrapper elements included.