CVE-2020-7773
Summary
| CVE | CVE-2020-7773 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2020-11-16 12:15:00 UTC |
| Updated | 2020-12-01 13:23:00 UTC |
| 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); |
Risk And Classification
Problem Types: CWE-79
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Markdown-it-highlightjs Project | Markdown-it-highlightjs | All | All | All | All |
| Application | Markdown-it-highlightjs Project | Markdown-it-highlightjs | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| N/A | CONFIRM | github.com | Broken Link |
| Cross-site Scripting (XSS) in markdown-it-highlightjs | Snyk | CONFIRM | snyk.io | Mitigation, Third Party Advisory |
| fix: escape invalid lang characters (XSS) by ooooooo-q · Pull Request #14 · valeriangalliat/markdown-it-highlightjs · GitHub | CONFIRM | github.com | Exploit, Third Party Advisory |
| markdown-it-highlightjs/index.js at v3.3.0 · valeriangalliat/markdown-it-highlightjs · GitHub | MITRE | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
LEGACY: ooooooo_q
There are currently no legacy QID mappings associated with this CVE.