CVE-2025-66021

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

Published Nov 26, 2025 CVSS 4.0 · 8.6 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-g9gq-3pfx-2gw2 OWASP Java HTML Sanitizer is vulnerable to XSS via noscript tag and improper style tag sanitization
History
Type Values Removed Values Added
CPEs cpe:2.3:a:owasp:java_html_sanitizer:20240325.1:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L'}

cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L'}

threat_severity

Important

Type Values Removed Values Added
First Time appeared Owasp
Owasp java Html Sanitizer
Vendors & Products Owasp
Owasp java Html Sanitizer
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title OWASP Java HTML Sanitizer is vulnerable to XSS via noscript tag and improper style tag sanitization
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 8.6, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 26, 2025, 3:16 PM
Reserved
Nov 21, 2025, 1:08 AM
Status
Analyzed
Published
Nov 26, 2025, 2:15 AM
Modified
Oct 18, 2026, 8:10 PM
Severity
Important
Public date
Nov 26, 2025, 1:53 AM