CVE-2025-66021: owasp java_html_sanitizer Cross-site Scripting
Vulnerability summary
CVE-2025-66021 is a high (CVSS 8.6) Cross-site Scripting vulnerability in owasp java_html_sanitizer. EPSS estimates a 0.25% chance of exploitation in the next 30 days, higher than 15.1% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 26-11-2025PublishedVulnerability first disclosed.
- 26-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · WolfiEcosystem advisory · calculated8.6HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated8.6HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
- OSV · MavenEcosystem advisory · calculated8.6HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
- NVDNIST8.6HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.25%
Chance of exploitation in the next 30 days
Percentile
15%
Versus all other CVEs
30-day change
0.00 pp
From 0.25% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundJava Html Sanitizer
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Chainguard7 products
- keycloak-26.2All versions (No fix recorded)
- keycloak-26.2-iamguarded-compatAll versions (No fix recorded)
- keycloak-26.4< 26.4.7-r3
- keycloak-fips-26.2-iamguarded-fipsAll versions (No fix recorded)
- keycloak-fips-26.3-iamguarded-fipsAll versions (No fix recorded)
Owasp2 products
- java_html_sanitizer20240325.1
- java-html-sanitizer= 20240325.1
Com.googlecode.owasp-java-html-sanitizer1 product
- owasp-java-html-sanitizer≥ 20240325.1, < 20260101.1
Wolfi1 product
- keycloak-26.4< 26.4.7-r3
4 vendors · 11 products
References
8 links- github.com/OWASP/java-html-sanitizer/security/advisories/GHSA-g9gq-3pfx-2gw2X Refsource CONFIRMAdvisoryWEBExploitVendor Advisory