CVE-2017-16017
MEDIUM6.1EPSS 0.26%Cross-Site Scripting in sanitize-html
Published: 11/9/2018Modified: 11/8/2023
Also known as:GHSA-wg96-3933-j2w5
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.
Affected packages (1)
- npm/sanitize-htmlfrom 0, < 1.2.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |