{"id":"CVE-2025-66021","published":"2025-11-26T01:53:37Z","modified":"2025-11-26T15:16:17Z","title":"OWASP Java HTML Sanitizer is vulnerable to XSS via noscript tag and improper style tag sanitization","vendor":"OWASP","product":"java-html-sanitizer","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00289,"percentile":0.21987,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/OWASP/java-html-sanitizer/security/advisories/GHSA-g9gq-3pfx-2gw2","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.4,"factors":[{"name":"EPSS percentile","points":4.4},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"owasp","affectedVersions":[{"vendor":"OWASP","product":"java-html-sanitizer","versions":["= 20240325.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-11-26T15:15:53.738095Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer","vulnerableRanges":[">=20240325.1, <20260101.1"],"patched":["20260101.1"],"from":["GHSA-g9gq-3pfx-2gw2"],"provenance":"source"}],"summary":{"text":"The java-html-sanitizer library from OWASP contains a cross-site scripting flaw in how it handles noscript and style tags, and the issue is present in version 20240325.1 when HtmlPolicyBuilder is configured to allow noscript and style tags with allowTextIn inside the style tag. An unauthenticated remote attacker can exploit this by supplying a crafted payload that is not properly sanitised, which requires a user to interact with the affected content, such as by viewing the page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:00:21Z"},"euvd":{"id":"EUVD-2025-199654","exploited":false,"provenance":"source"}}