Moderate severityNVD Advisory· Published Feb 8, 2021· Updated Aug 3, 2024
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
2- Apostrophe Technologies/sanitize-htmldescription
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-mjxr-4v3x-q3m4ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-26540ghsaADVISORY
- advisory.checkmarx.net/advisory/CX-2021-4309ghsax_refsource_MISCWEB
- github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.mdghsax_refsource_MISCWEB
- github.com/apostrophecms/sanitize-html/pull/460ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.