CVE 8.6 HIGH

OWASP Java HTML Sanitizer is vulnerable to XSS via noscript tag and improper style tag sanitization_CVE-2025-66021

8.6 / 10
HIGH
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

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.

AI Analysis

XSS vulnerability in OWASP Java HTML Sanitizer via noscript and style tags

Basic Information

ID CVE-2025-66021
Source GitHub_M
Published Nov 26, 2025 at 01:53

Affected Product

Vendor OWASP
Product java-html-sanitizer
Version = 20240325.1
Affected Versions OWASP java-html-sanitizer = 20240325.1

CWE Classification

AI Assessment

AI Score 8.6 / 10
AI Severity High
Vendor OWASP
Product Java HTML Sanitizer
Version 20240325.1

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.