Description
XSS vulnerability when the sanitizer is used with a contentEditable
element to set the elements innerHTML
to a sanitized string produced by the package. If the code is particularly crafted to abuse the code beautifier, that runs AFTER sanitation.
Recommendation
Update the @jitbit/htmlsanitizer
package to the latest compatible version. Followings are version details:
- Affected version(s): < 2.0.3
- Patched version(s): 2.0.3
References
Related Issues
- Prebid-universal-creative latest on npm briefly compromised - CVE-2025-59039
- Joplin Cross Site Scripting Vulnerability via NOSCRIPT tags - CVE-2021-33295
- Joplin Vulnerable to Cross-site Scripting in Note Content - CVE-2018-1000534
- zcap has incomplete expiration checks in capability chains. - CVE-2024-31995
- Tags:
- npm
- @jitbit/htmlsanitizer
Anything's wrong? Let us know Last updated on March 14, 2025