MEDIUM5.3
GHSA-rjqq-98f6-6j3r
Improper Input Validation in sanitize-html
Quick fix
GHSA-rjqq-98f6-6j3r — sanitize-html: upgrade to the fixed version with the command below.
npm install sanitize-html@2.3.1Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-26539[ADVISORY]
- https://github.com/apostrophecms/sanitize-html/pull/458[WEB]
- https://github.com/apostrophecms/sanitize-html/commit/bdf7836ef8f0e5b21f9a1aab0623ae8fcd09c1da[WEB]
- https://advisory.checkmarx.net/advisory/CX-2021-4308[WEB]
- https://github.com/apostrophecms/sanitize-html[PACKAGE]
- https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md#231-2021-01-22[WEB]