JS Html Sanitizer allows XSS when used with contentEditable
Moderate severity
GitHub Reviewed
Published
Mar 14, 2025
in
jitbit/HtmlSanitizer
•
Updated Mar 14, 2025
Description
Published by the National Vulnerability Database
Mar 14, 2025
Published to the GitHub Advisory Database
Mar 14, 2025
Reviewed
Mar 14, 2025
Last updated
Mar 14, 2025
Impact
XSS vulnerability when the sanitizer is used with a
contentEditable
element to set the elementsinnerHTML
to a sanitized string produced by the package. If the code is particularly crafted to abuse the code beautifier, that runs AFTER sanitation.Patches
Patched in version 2.0.3
References