Improper Input Validation in sanitize-html
Moderate severity
GitHub Reviewed
Published
May 6, 2021
to the GitHub Advisory Database
•
Updated Feb 1, 2023
Description
Published by the National Vulnerability Database
Feb 8, 2021
Reviewed
Mar 29, 2021
Published to the GitHub Advisory Database
May 6, 2021
Last updated
Feb 1, 2023
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".
References