Cross-site scripting in HtmlSanitizer - CVE-2023-44390
Published: October 4, 2023 / Updated: November 6, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to bypass HTML sanitization and execute arbitrary JavaScript in a victim's browser.
The vulnerability exists due to incomplete sanitization of foreign content in HtmlSanitizer when a non-default configuration allows svg or math together with comments or a raw text element. An unauthenticated remote attacker can submit crafted HTML that survives sanitization and executes when a victim views the resulting content.