CVE-2017-16017: XSS
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.
Other sources
sanitize-html is a library for scrubbing html input for malicious values Versions 1.2.2 and below have a cross site scripting vulnerability.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2017-16017?
CVE-2017-16017 is classified as a high-severity vulnerability due to its potential for cross-site scripting (XSS) attacks.
What versions of sanitize-html are affected by CVE-2017-16017?
CVE-2017-16017 affects versions of sanitize-html up to and including 1.2.2.
How can I fix CVE-2017-16017?
To fix CVE-2017-16017, upgrade sanitize-html to version 1.2.3 or later.
What type of vulnerability is CVE-2017-16017?
CVE-2017-16017 is a cross-site scripting (XSS) vulnerability found in the sanitize-html package.
How does CVE-2017-16017 impact web applications?
CVE-2017-16017 can allow attackers to execute arbitrary JavaScript in the context of the user's browser, compromising web application security.