CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2021

CVE-2021-26540
Apostrophecms Sanitize-html vulnerability

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

Affected products

Sanitize-html. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Apostrophecms Sanitize-html runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.