Cross-site Scripting (XSS) Affecting marked package, versions [,0.3.6)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DOTNET-MARKED-60184
  • published28 Sept 2016
  • disclosed28 Sept 2016
  • creditMatt Austin

Introduced: 28 Sep 2016

CVE NOT AVAILABLE CWE-79  (opens in a new tab)

How to fix?

Upgrade marked to version 0.3.6 or higher. Also, you can patch the vulnerability using Snyk wizard. Alternatively you can use remarkable or other markdown libraries.

Overview

marked is a markdown parser and compiler used for rendering markdown content to html.

It is vulnerable to content injection attack allowing the attacker to bypass its output sanitization (sanitize: true) protection. Using the HTML Coded Character Set, attackers can inject javascript: code snippets into the output. For example, the following input javascript&#x58document;alert(1) will result in alert(1) being executed when the user clicks on the link.

Details

<>

CVSS Scores

version 3.1