CVE-2025-66021CWE-79cross-site-scripting

CVE-2025-66021

Medium · published November 26, 2025

CVSS v3.1
6.1
EPSS
0%
Percentile
15.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.1 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00249 · 15.3th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2025-11-26T07:15Z
Affected products (1)
ProductVersionsFixed in
owasp/java_html_sanitizerall versions—
References (2)
EPSS history
Timeline
  • 26 NOV 01:53Z
    OWASP Java HTML Sanitizer is vulnerable to XSS via noscript tag and improper style tag sanitization
    cvelistv5