This affects the package markdown-it-highlightjs before 3.3.1. It is possible insert malicious JavaScript as…
Historical advisory recorded 24 Oct 2026 17:17:27 UTC. Read the latest advisory.
nvd · CVE-2020-7773
PublishedThis 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);
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2020-7773
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Modified
Weakness classifications: CWE-79
Original publisher date fields
published: 2020-11-16T12:15:14.463
lastModified: 2026-06-17T03:25:25.287
1 source CPE criteria · context only
- cpe:2.3:a:markdown-it-highlightjs_project:markdown-it-highlightjs:*:*:*:*:*:node.js:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON