#VU123020 Cross-site scripting in Java HTML Sanitizer - CVE-2025-66021
Published: February 18, 2026
Java HTML Sanitizer
OWASP
Description
The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.
The vulnerability exists due to insufficient sanitization of user-supplied data if HtmlPolicyBuilder allows noscript and style tags with allowTextIn inside the style tag. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website.