CVE-2025-66021 — Cross-site Scripting in Java-html-sanitizer
Severity
8.6HIGHNVD
EPSS
0.0%
top 94.50%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedNov 26
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…
CVSS vector
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
Affected Packages2 packages
🔴Vulnerability Details
3CVEList▶
OWASP Java HTML Sanitizer is vulnerable to XSS via noscript tag and improper style tag sanitization↗2025-11-26
GHSA▶
OWASP Java HTML Sanitizer is vulnerable to XSS via noscript tag and improper style tag sanitization↗2025-11-25
OSV▶
OWASP Java HTML Sanitizer is vulnerable to XSS via noscript tag and improper style tag sanitization↗2025-11-25
📋Vendor Advisories
1Red Hat▶
com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer: OWASP Java HTML Sanitizer vulnerable to XSS↗2025-11-26