| Package | Affected versions | Patched versions |
|---|---|---|
| sanitize-html | ≤ 1.2.2 | |
| sanitize-html | < 1.2.3 | 1.2.3 |
Affected versions of sanitize-html are vulnerable to cross-site scripting.
<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.
Update to version 1.2.3 or later.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free