ADVISORIES

GitHub Advisory Database

GHSA-wg96-3933-j2w5

Cross-Site Scripting in sanitize-html

Moderate CVE-2017-16017

Details

Affected versions of sanitize-html are vulnerable to cross-site scripting.

Proof of Concept:

<IMG SRC= onmouseover="alert('XSS');"> produces the following:

<img src="onmouseover="alert('XSS');"" /> This is definitely invalid HTML, but would suggest that it's being interpreted incorrectly by the parser.

Recommendation

Update to version 1.2.3 or later.

Affected packages

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

References