Description
Apostrophe Technologies sanitize-html before 2.3.1 does not properly handle internationalized domain name (IDN) which could allow an attacker to bypass hostname whitelist validation set by the “allowedIframeHostnames” option.
Recommendation
Update the sanitize-html package to the latest compatible version. Followings are version details:
- Affected version(s): < 2.3.1
- Patched version(s): 2.3.1
References
Related Issues
- Improper Input Validation in sanitize-html (GHSA-mjxr-4v3x-q3m4) - CVE-2021-26540
- sanitize-html is vulnerable to XSS through incomprehensive sanitization - CVE-2019-25225
- Sanitize-html Vulnerable To REDoS Attacks - CVE-2022-25887
- Improper Certificate Validation in xmlhttprequest-ssl - CVE-2021-31597
- Tags:
- npm
- sanitize-html
Anything's wrong? Let us know Last updated on April 21, 2023