CWE
79
Advisory Published
Advisory Published
Updated

CVE-2016-10531: XSS

First published: Thu May 31 2018(Updated: )

Affected versions of `marked` are susceptible to a cross-site scripting vulnerability in link components when `sanitize:true` is configured. ## Proof of Concept This flaw exists because link URIs containing HTML entities get processed in an abnormal manner. Any HTML Entities get parsed on a best-effort basis and included in the resulting link, while if that parsing fails that character is omitted. For example: A link URI such as ``` javascript&#x58document;alert(1) ``` Renders a valid link that when clicked will execute `alert(1)`. ## Recommendation Update to version 0.3.6 or later.

Credit: support@hackerone.com

Affected SoftwareAffected VersionHow to fix
npm/marked<0.3.6
0.3.6
Marked Project<=0.3.5

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-2016-10531?

    CVE-2016-10531 is classified as a high severity cross-site scripting vulnerability.

  • How do I fix CVE-2016-10531?

    To fix CVE-2016-10531, upgrade the 'marked' package to version 0.3.7 or later.

  • What versions of marked are affected by CVE-2016-10531?

    CVE-2016-10531 affects marked versions up to and including 0.3.6.

  • What happens if I do not address CVE-2016-10531?

    If left unaddressed, CVE-2016-10531 could allow attackers to execute arbitrary JavaScript in the context of a victim's browser.

  • Does CVE-2016-10531 impact all environments using marked?

    CVE-2016-10531 primarily impacts environments configuring marked with 'sanitize:true'.

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