CVE-2020-7773

This affects the package markdown-it-highlightjs before 3.3.1. It is possible insert malicious JavaScript as a value of lang in the markdown-it-highlightjs Inline code highlighting feature. const markdownItHighlightjs = require("markdown-it-highlightjs"); const md = require('markdown-it'); const reuslt_xss = md() .use(markdownItHighlightjs, { inline: true }) .render('console.log(42){.">js}'); console.log(reuslt_xss);
Configurations

Configuration 1 (hide)

cpe:2.3:a:markdown-it-highlightjs_project:markdown-it-highlightjs:*:*:*:*:*:node.js:*:*

History

No history.

Information

Published : 2020-11-16 12:15

Updated : 2024-11-21 05:37


NVD link : CVE-2020-7773

Mitre link : CVE-2020-7773

CVE.ORG link : CVE-2020-7773


JSON object : View

Products Affected

markdown-it-highlightjs_project

  • markdown-it-highlightjs
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')