Medium severity5.3NVD Advisory· Published Feb 8, 2021· Updated Jun 17, 2026
CVE-2021-26540
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".
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
sanitize-htmlnpm | < 2.3.2 | 2.3.2 |
Affected products
3- Apostrophe Technologies/sanitize-htmldescription
Patches
Vulnerability mechanics
References
5- github.com/apostrophecms/sanitize-html/pull/460nvdPatchThird Party AdvisoryWEB
- advisory.checkmarx.net/advisory/CX-2021-4309nvdExploitPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-mjxr-4v3x-q3m4ghsaADVISORY
- github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.mdnvdRelease NotesThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2021-26540ghsaADVISORY
News mentions
0No linked articles in our index yet.