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 applicationsUpgrade markdown-it
to version 4.3.1 or higher.
markdown-it
is a modern pluggable markdown parser.
Affected versions of the package are vulnerable to Cross-site Scripting (XSS) via Class Injection.
The markdown-it renderer blindly appends the character class to the language-
part of the tag. If there is a space in the language name, it'll be rendered into two separate classes.
\`\`\`
foo bar
code
\`\`\`
will be rendered into
<pre><code style="language-foo bar">
code
</code></pre>
A malicious user can attach an arbitrary class to the code
tag.
<>