Cross-site scripting in Java HTML Sanitizer - CVE-2025-66021

 

Cross-site scripting in Java HTML Sanitizer - CVE-2025-66021

Published: February 18, 2026


Vulnerability identifier: #VU123020
CSH Severity: Low
CVSS v4: 2.1 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2025-66021
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

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

Java HTML Sanitizer
watsonx.data
Bamboo Server

How to mitigate CVE-2025-66021

Install updates from vendor's website.

Java HTML Sanitizer - update to 20260101.1
watsonx.data - update to 2.3.1
Bamboo Server - addressed in versions 10.2.14, 12.1.2

External References

Related Security Bulletins