CVE-2025-66021: OWASP Java HTML Sanitizer is vulnerable to XSS via noscript tag and improper style tag sanitization
Vulnerability summary
CVE-2025-66021 is a high (CVSS 8.6) vulnerability in owasp java_html_sanitizer. EPSS estimates a 0.29% chance of exploitation in the next 30 days, higher than 23% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 26-11-2025PublishedVulnerability first disclosed.
- 03-12-2026Last 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. Prior to 20260101.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. This vulnerability is fixed in 20260101.1.
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.29%
Chance of exploitation in the next 30 days
Percentile
23%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.29% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundJava Html Sanitizer
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard29 products
- commercial-elasticsearch-8.17All versions (No fix recorded)
- commercial-elasticsearch-8.19All versions (No fix recorded)
- commercial-elasticsearch-9.3All versions (No fix recorded)
- commercial-elasticsearch-9.4All versions (No fix recorded)
- commercial-elasticsearch-9.5All versions (No fix recorded)
Owasp2 products
- java_html_sanitizer20240325.1
- java-html-sanitizer< 20260101.1
Com.googlecode.owasp-java-html-sanitizer1 product
- owasp-java-html-sanitizer≥ 20240325.1, < 20260101.1 | < 20260101.1
Wolfi1 product
- keycloak-26.4< 26.4.7-r3
4 vendors · 33 products
References
8 links- github.com/OWASP/java-html-sanitizer/security/advisories/GHSA-g9gq-3pfx-2gw2X Refsource CONFIRMAdvisoryWEBExploitVendor Advisory