cve.bz

CVE-2021-26540

5.3 mediumEPSS 1.8%

Medium (5.3) in apostrophecms sanitize-html. EPSS 1.8% chance of exploitation in the next 30 days. Fixed in sanitize-html 2.3.2.

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

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS
1.8% chance of exploitation in the next 30 days; higher than 77% of CVEs (scores of 2026-10-31)
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mjxr-4v3x-q3m4npmsanitize-html<2.3.22.3.2

References

Check your stackJSON