Vulnerability

CVE-2025-66021

highCVSS 4.0 8.6Published 26 Nov 2025

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Owasp java html sanitizer

Weakness type

References

  • github.com /OWASP/java-html-sanitizer/security/advisories/GHSA-g9gq-3p…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning