CVE-2025-66021 - CVE House
Back to Database
Status published High CVE-2025-66021

OWASP Java HTML Sanitizer is vulnerable to XSS via noscript tag and improper style tag sanitization

Vulnerability Description

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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2025-66021

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

java-html-sanitizer
Vulnerable Versions:
= 20240325.1

Timeline

Official Publish: November 26th, 2025
Last Modified: November 26th, 2025
Added to House: July 22nd, 2026

CVSS Vectors

Weaknesses (CWE)