Description
Apostrophe Technologies sanitize-html before 2.3.2 does not properly validate the hostnames set by the "allowedIframeHostnames" option when the "allowIframeRelativeUrls" is set to true, which allows attackers to bypass hostname whitelist for iframe element, related using an src value that starts with "/\\example.com".
Metrics
CVSS 3.1 5.3/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NAffected software
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
References
- https://advisory.checkmarx.net/advisory/CX-2021-4309Exploit, Patch, Third Party Advisory
- https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md#232-2021-01-26Release Notes, Third Party Advisory
- https://github.com/apostrophecms/sanitize-html/pull/460Patch, Third Party Advisory
- https://advisory.checkmarx.net/advisory/CX-2021-4309Exploit, Patch, Third Party Advisory
- https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md#232-2021-01-26Release Notes, Third Party Advisory
- https://github.com/apostrophecms/sanitize-html/pull/460Patch, Third Party Advisory
Timeline
- Published
- Feb 8, 2021
- Last modified
- Jun 17, 2026
- NVD status
- Modified