All reports
Medium

Cross-Site Scripting in sanitize-html

Affected versions

Affected versions
< 1.2.3
Fixed version
1.2.3

Exploitation

CVE-2017-16017

Probability of exploitation in the next 30 days: 1.15%

FIRST EPSS · 2026-11-22

Description

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.

Links