CVE-2020-7773
published medium CVSS 3.1 · 6.5Cross-site Scripting (XSS)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | markdown-it-highlightjsunspecified to < 3.3.1 | Affected | Not stated | snyk |
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);
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N/E:P/RL:O/RC:C
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | markdown-it-highlightjs | unspecified to < 3.3.1 (affected · custom) | snyk · cna |
Weaknesses
1- Cross-site Scripting (XSS)
References
3Provider assertions
2snyk · cna
Cross-site Scripting (XSS)
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- f66fcdd2f393357f4e00085fadf644831c1a783b24ad68d4fc0603d483e428cc
- Ingested
- 23 Sep 2026, 07:51:25 UTC
- Source record
- Official CVE record