Description
Affected versions of sanitize-html
are vulnerable to cross-site scripting when allowedTags includes at least one nonTextTag
.
Recommendation
Update the sanitize-html
package to the latest compatible version. Followings are version details:
- Affected version(s): <= 1.11.1
- Patched version(s): 1.11.4
References
Related Issues
- sanitize-html is vulnerable to XSS through incomprehensive sanitization - CVE-2019-25225
- JS Html Sanitizer allows XSS when used with contentEditable - CVE-2025-29771
- Potential XSS vulnerability in jQuery (GHSA-gxr4-xjj5-5px2) - CVE-2020-11022
- sanitize-html Information Exposure vulnerability - CVE-2024-21501
- Tags:
- npm
- sanitize-html
Anything's wrong? Let us know Last updated on September 08, 2023