XSS in Markdown-It-Highlightjs Project
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);
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS: 0.014 (70.8th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 71st percentile — 70.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.014 · newest: 0.014 · change: 0.000
Affected products
- Markdown-It-Highlightjs Project
- Markdown-It-Highlightjs — versions unspecified
Weakness classification (CWE)
References
- snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461 (Third Party Advisory, Mitigation)
- github.com/valeriangalliat/markdown-it-highlightjs/pull/14 (Exploit, Third Party Advisory)
- github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js#L52 (Broken Link)
Frequently asked questions
- What is CVE-2020-7773?
- CVE-2020-7773 is a medium-severity vulnerability in Markdown-It-Highlightjs Project, classified under Cross-site Scripting. CVSS score: 6.5/10. Published 2020-11-16.
- How severe is CVE-2020-7773?
- Medium severity. CVSS v3 base score is 6.5 out of 10.