8.6

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

Modified
AliasesCGA-45f8-2cf8-g6x8CGA-cmcc-hqmr-2w58CGA-4j22-r37q-254r
Published 26-11-2025Last modified 03-12-2026

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.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
8.6/10
010
High · v4.0 (CVE.org)
EPSS score
0.29%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 26-11-2025
    PublishedVulnerability first disclosed.
  2. 03-12-2026
    Last 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

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

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Java Html Sanitizer

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

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
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