VDB

CVE-2025-66021

CVE-2025-66021 PUBLISHED CVSS 8.6 HIGH

Reported by github_m · Published November 26, 2025

owasp-java-html-sanitizer is fixed in 20260101.1 and 20240325.1 (Maven Central)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizerMaven Central20260101.1, 20240325.1
keycloak-26.4Wolfi26.4.7-r3
keycloak-26.4Chainguard26.4.7-r3

Risk scores

CVSS 4.0
8.6
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Affected products

VendorProductVersions
OWASPjava-html-sanitizer= 20240325.1
Mavencom.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer20240325.1, 20240325.1
wolfikeycloak-26.40
chainguardkeycloak-26.40
OWASPjava-html-sanitizer20240325.1
chainguardkeycloak-26.30

Timeline

  • Nov 25, 2025 CVE Published
  • Nov 26, 2025 EPSS Score (30 in total, the first dated here)
  • Feb 20, 2026 PoC Published
  • Mar 17, 2026 Security Advisory
  • Mar 17, 2026 CVE Updated
  • Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-66021
vulnetix vdb fixes CVE-2025-66021

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-66021/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›