CVE-2017-16017
mediumpriority · track · 24EPSS 0.012 · 67 %ileEUUSEPSS · scored 2026-10-28
sanitize-html is a library for scrubbing html input for malicious values Versions 1.2.2 and below have a cross site scripting vulnerability.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-wg96-3933-j2w5Cross-Site Scripting in sanitize-html2018-11-09ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (9)
External citations — patches, advisories, analysis.
- https://github.com/punkave/sanitize-html/issues/19cnnvd
- https://github.com/punkave/sanitize-html/pull/20cnnvd
- https://nodesecurity.io/advisories/155cnnvd
- https://github.com/punkave/sanitize-html/issues/19enisa_euvd
- https://github.com/punkave/sanitize-html/pull/20enisa_euvd
- https://nodesecurity.io/advisories/155enisa_euvd
- https://github.com/punkave/sanitize-html/issues/19ExploitThird Party Advisorynvd
- https://github.com/punkave/sanitize-html/pull/20Issue Trackingnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan