Vulnerability library
Security checkSeptember 12, 2023

Bypassing Sanitization using DOM clobbering in html-janitor

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmhtml-janitor

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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 scan

Related Issues

See something that needs correcting? Let us knowUpdated September 12, 2023