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 - sanitize-html - CVE-2021-26540
- Apostrophe has default XSS via `xmp` raw-text passthrough in `sanitize-html` - CVE-2026-44990
- Cross-Site Scripting in sanitize-html - sanitize-html - GHSA-3j7m-hmh3-9jmp - CVE-2016-1000237
- Improper Certificate Validation in xmlhttprequest-ssl - CVE-2021-31597
You might also like:
- Tags:
- npm
- sanitize-html
Anything's wrong? Let us know Last updated on April 21, 2023


