cve.bz

CVE-2020-7773

6.1 mediumEPSS 1.4%

Medium (6.1) in markdown-it-highlightjs project markdown-it-highlightjs. EPSS 1.4% chance of exploitation in the next 30 days. Fixed in markdown-it-highlightjs 3.3.1.

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);

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
1.4% chance of exploitation in the next 30 days; higher than 71% of CVEs (scores of 2026-10-31)
CWE
CWE-79
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-f246-xrrj-g8j6npmmarkdown-it-highlightjs<3.3.13.3.1

References

Check your stackJSON