CWE
79
Advisory Published
Advisory Published
Updated

CVE-2017-16017: XSS

First published: Mon Jun 04 2018(Updated: )

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.

Credit: support@hackerone.com support@hackerone.com

Affected SoftwareAffected VersionHow to fix
Punkave Sanitize-html<=1.2.2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203