Skip to main content
← All vulnerabilities
CVE-2021-26540GHSA-MJXR-4V3X-Q3M4

Apostrophe Technologies sanitize-html before 2.3.2 does not properly validate the hostnames set by the "allowedIframeHostnames" option when

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.3.2
None on Exploit-DB, Metasploit or GitHub

Summary

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

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • sanitize-htmlnpm

    fixed in 2.3.2

References 3

GitHub · apostrophecms/sanitize-html

advisory.checkmarx.net