Description
All versions of html-janitor are vulnerable to cross-site scripting (XSS).
Arbitrary HTML can pass the sanitization process, which can be unexpected and dangerous (XSS) in case user-controlled input is passed to the clean function.”
Recommendation
No fix is available yet. Followings are affected versions:
- < 2.0.4
References
Could your website be exposed too?
SmartScanner can check your website for Bypassing Sanitization using DOM clobbering in html-janitor and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Cross-Site Scripting in html-janitor - CVE-2017-0931
- Sanitization bypass using HTML Entities in marked - CVE-2016-10531
- Cross-Site Scripting in sanitize-html - CVE-2017-16017
- Marp Core allows XSS by improper neutralization of HTML sanitization - CVE-2024-56510


