SEVERITY AND EXPLOITATION CONTEXT

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

Review published vectors, EPSS probability and CISA KEV status independently.

Lookup reads saved CVE and CISA snapshots from this site and requests EPSS from FIRST. The CVE source is contacted when a saved record is unavailable or you request a refresh. External providers receive your IP address. Finding notes and saved assessments are not sent by this feature.

OWASP Java HTML Sanitizer is vulnerable to XSS via noscript tag and improper style tag sanitization

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.

Published CVE snapshot: 2026-10-22. Record last updated: 2025-11-26T15:16:17.063Z. The live panels refresh separately; this snapshot remains available if a source cannot be reached.

View the CVE Program source record

GitHub_M · CVSS 4.0: 8.6 High

Calculated from the published vector. Base score: 8.6. Provider-reported Base score: 8.6.

Vector and metric explanationsCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
MetricValueMeaning
Attack vector (AV)NReachable across a network boundary, including internet or routed network paths.
Attack complexity (AC)LThere is no specific security-enhancing condition that the attacker must overcome.
Attack requirements (AT)NNo particular deployment or execution prerequisite is needed.
Privileges required (PR)NThe attacker needs no privileges before exploiting the vulnerability.
User interaction (UI)PA targeted user interacts in a limited or involuntary way, such as rendering attacker-controlled content.
Confidentiality (VC)HAll information is disclosed, or a limited disclosure has a direct, serious confidentiality consequence.
Integrity (VI)HIntegrity is completely lost, or modification has a direct, serious consequence.
Availability (VA)NNo availability impact is demonstrated.
Confidentiality (SC)NNo impact to this property is established in a subsequent system.
Integrity (SI)NNo impact to this property is established in a subsequent system.
Availability (SA)NNo impact to this property is established in a subsequent system.

These definitions explain provider selections; they do not independently verify exploitation.

Review vector in calculator

Affected products reported by the provider

  • OWASP · java-html-sanitizer

Consult the advisory for affected version ranges, configurations and remediation. A product listing alone does not establish that your installation is vulnerable.

Source references (1)

Interpret severity and exploitation separately

CVSS measures technical severity. EPSS estimates exploitation probability over the next 30 days. CISA KEV lists known exploited vulnerabilities. A missing EPSS result is not zero probability, and absence from KEV does not prove no exploitation. Review your deployment and retain the version, vector and evidence when documenting a finding.

Browse CVEs from 2025 · All published CVEs · Calculation methodology