Skip to content
CORVASEC — Knowledge Defends
Vulnerability Explorer›CVE-2025-66021
VULNERABILITY

CVE-2025-66021

Common Vulnerabilities and Exposures record

HIGH

Summary

OWASP Java HTML Sanitizer is a configureable HTML Sanitizer written in Java, allowing inclusion of HTML authored by third-parties in web applications while protecting against XSS. In version 20240325.1, OWASP java html sanitizer is vulnerable to XSS if HtmlPolicyBuilder allows noscript and style tags with allowTextIn inside the style tag. This could lead to XSS if the payload is crafted in such a way that it does not sanitise the CSS and allows tags which is not mentioned in HTML policy. At time of publication no known patch is available.

Risk

CVSS
8.6
Severity
HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Timeline

Published
Nov 26, 2025 02:15
Modified
Oct 18, 2026 20:10
Last observed
Oct 20, 2026 20:38

CWE

CWE-79

Affected product identifiers

cpe:2.3:a:owasp:java_html_sanitizer:20240325.1:*:*:*:*:*:*:*

References