CVE-2025-66021 OWASP Java HTML Sanitizer is vulnerable to XSS via noscript tag and improper style tag sanitization
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/OWASP/java-html-sanitizer/security/advisories/GHSA-g9gq-3pfx-2gw2 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com patch
- github.com patch
- github.com patch
- github.com product
- github.com
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2417190 issue-tracking
- www.cve.org