Breaking News: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2025-66021

com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer: OWASP Java HTML Sanitizer vulnerable to XSS

Overview

Published
26 Nov 2025
Modified
18 Oct 2026
High CVE
1 Registry packages
4 OS packages
3 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

6.1 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Weakness: CWE-79

Affected packages · 1

Packages affected by CVE-2025-66021
EcosystemPackageVulnerableFixed in
Maven com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer >=20240325.1, <20260101.1 20260101.1

Open a package to see all its vulnerabilities.

Operating systems · 5 fixes

Red Hat 3 releases · 1 package

wont fix 3
owasp-java-html-sanitizer
Red Hat fixes for CVE-2025-66021
ReleasePackageFixed in
7 owasp-java-html-sanitizer wont fix
8 owasp-java-html-sanitizer wont fix
9 owasp-java-html-sanitizer wont fix

chainguard 1 release · 1 package

fixed 1
keycloak-26-4
chainguard fixes for CVE-2025-66021
ReleasePackageFixed in
keycloak-26-4 26.4.7-r3

minimos 1 release · 1 package

fixed 1
keycloak
minimos fixes for CVE-2025-66021
ReleasePackageFixed in
keycloak +1 26.4.7-r2

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.