All reports
Medium

Improper Input Validation in sanitize-html

Affected versions

Affected versions
< 2.3.2
Fixed version
2.3.2
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2021-26540

Probability of exploitation in the next 30 days: 1.78%

FIRST EPSS · 2026-11-25

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

Links