VDB
Sign up
MEDIUM5.3

GHSA-rjqq-98f6-6j3r

Improper Input Validation in sanitize-html

Quick fix

GHSA-rjqq-98f6-6j3r — sanitize-html: upgrade to the fixed version with the command below.

npm install sanitize-html@2.3.1

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/sanitize-html
Introduced in: 0Fixed in: 2.3.1
Fixnpm install sanitize-html@2.3.1

References