CVE-2020-7773
Last modified
CVE-2020-7773 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 1.35% chance of exploitation in the next 30 days.
Description
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);
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Markdown-It-Highlightjs Project | Markdown-It-Highlightjs | < 3.3.1 |
References
- https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461Mitigation, Third Party Advisory
- https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461Mitigation, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2020-7773?
How severe is CVE-2020-7773?
How do I fix CVE-2020-7773?
Are you affected by CVE-2020-7773?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
