Skip to content

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

HighCVSS 8.6 EPSS 0.29%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
Red Hat

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.

Upgrade path

7 packages: 1 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
redhat/jenkins(Red Hat ocp_tools) All versions No fix listed No fix yet
redhat/jenkins-2-plugins(Red Hat ocp_tools) All versions No fix listed No fix yet
redhat/owasp-java-html-sanitizer(Red Hat logging 5) All versions No fix listed No fix yet
redhat/owasp-java-html-sanitizer(Red Hat red_hat_single_sign_on 7) All versions No fix listed No fix yet
com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer(Maven) = 20240325.1; >= 20240325.1, < 20260101.1 20260101.1 Fixed
owasp java html sanitizer = 20240325.1 No fix listed Versions listed
owasp java-html-sanitizer = = 20240325.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer(Maven) >= 20240325.1, < 20260101.1 20260101.1
com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer(Maven) = 20240325.1 No fix listed
owasp java-html-sanitizer = = 20240325.1 No fix listed
redhat/owasp-java-html-sanitizer(Red Hat:logging:5) All versions No fix listed
redhat/jenkins(Red Hat:ocp_tools) All versions No fix listed
redhat/jenkins-2-plugins(Red Hat:ocp_tools) All versions No fix listed
redhat/owasp-java-html-sanitizer(Red Hat:red_hat_single_sign_on:7) All versions No fix listed
owasp java html sanitizer = 20240325.1 No fix listed

References