Advisories for Maven/Com.googlecode.owasp-Java-Html-Sanitizer/Owasp-Java-Html-Sanitizer package

2025

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

It is observed that 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.

2022
2021