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.
{
"nvd_published_at": null,
"severity": "MODERATE",
"cwe_ids": [
"CWE-79"
],
"github_reviewed": true,
"github_reviewed_at": "2020-06-16T22:00:25Z"
}