ADVISORIES

GitHub Advisory Database

GHSA-hfj4-96f7-6r5g

Cross-Site Scripting in html-janitor

Moderate CVE-2017-0931

Details

Versions of html-janitor prior to 2.0.2 (all current versions) are vulnerable to cross-site scripting (XSS).

This is exploitable if user-controlled data is passed into the modules clean() function.

Recommendation

No fix is currently available for this vulnerability. It is recommended to use an alternative module for HTML sanitization.

Affected packages

EcosystemPackageAffected versions
npmhtml-janitor
All versions before 2.0.3 (fixed in 2.0.3)

References