Description
The package sanitize-html before 2.7.1 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure global regular expression replacement logic of HTML comment removal.
Recommendation
Update the sanitize-html package to the latest compatible version. Followings are version details:
- Affected version(s): < 2.7.1
- Patched version(s): 2.7.1
References
Could your website be exposed too?
SmartScanner can check your website for Sanitize-html Vulnerable To REDoS Attacks and gives you actionable findings to investigate.
Start a free scanRelated Issues
- sanitize-html is vulnerable to XSS through incomprehensive sanitization - CVE-2019-25225
- Improper Input Validation in sanitize-html - sanitize-html - CVE-2021-26540
- ApostropheCMS sanitize-html: SMIL animation namespace-prefix bypass allows javascript: URI injection (XSS) - CVE-2026-113657
- ApostropheCMS sanitize-html: unbounded recursion when re-sanitizing the fallback of a discarded iframe (stack overflow, - CVE-2026-113650
You might also like:
See something that needs correcting? Let us knowUpdated April 22, 2024


