VYPR
Medium severity6.1NVD Advisory· Published Nov 26, 2025· Updated Jun 17, 2026

CVE-2025-66021

CVE-2025-66021

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizerMaven
>= 20240325.1, < 20260101.120260101.1

Affected products

24

Patches

Vulnerability mechanics

References

7

News mentions

0

No linked articles in our index yet.