Vulnerability in Apostrophecms Sanitize-Html
CVE-2021-26540
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".
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.
EPSS exploit prediction
EPSS 0.018, 78.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
References
- github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md (Third Party Advisory, Release Notes)
- github.com/apostrophecms/sanitize-html/pull/460 (Patch, Third Party Advisory)
- advisory.checkmarx.net/advisory/CX-2021-4309 (Exploit, Patch, Third Party Advisory)