CVE-2025-66021

HIGH CVSS 4.0: 8.6 EPSS 0.29%
Updated Oct 18, 2026
Owasp
Parameter Value
CVSS 8.6 (HIGH)
Type CWE-79 (Cross-Site Scripting (XSS))
Vendor Owasp
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
Passive
Minimal interaction

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
None
No disruption

CVSS Vector v4.0

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Owasp Java_Html_Sanitizer
cpe:2.3:a:owasp:java_html_sanitizer:20240325.1:*:*:*:*:*:*:*
— —