What’s Vulnerable › Vulnerabilities

CVE-2021-26540

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".

Affected products

How to fix

Upgrade to a fixed version: apostrophecms sanitize-html 2.3.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-26540 or the next vulnerability affects your stack