Cross-site scripting in Java HTML Sanitizer - CVE-2025-66021
Published: February 18, 2026
Vulnerability details
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.
Affected software
watsonx.data
Bamboo Server
How to mitigate CVE-2025-66021
watsonx.data - update to 2.3.1
Bamboo Server - addressed in versions 10.2.14, 12.1.2