ADVISORIES

GitHub Advisory Database

GHSA-rjqq-98f6-6j3r

Improper Input Validation in sanitize-html

Moderate CVE-2021-26539

Details

Apostrophe Technologies sanitize-html before 2.3.1 does not properly handle internationalized domain name (IDN) which could allow an attacker to bypass hostname whitelist validation set by the "allowedIframeHostnames" option.

Affected packages

EcosystemPackageAffected versions
npmsanitize-html
All versions before 2.3.1 (fixed in 2.3.1)

References