Read the docs
TI-2020-06290 Aliases CVE-2020-7773GHSA-f246-xrrj-g8j6

Cross-site scripting (XSS) in markdown-it-highlightjs

Priority LOW 32CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.

Summary

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

Why it matters now

EPSS 0.01362 71st percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed markdown-it-highlightjs: 3.3.1markdown-it-highlightjs (npm): 3.3.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—markdown-it-highlightjsbefore 3.3.13.3.1Patch availableCNA
—markdown-it-highlightjs (npm)before 3.3.13.3.1Patch availableGHSA-f246-xrrj-g8j6
  • markdown-it-highlightjs Vendor— Affected before 3.3.1 Fixed in 3.3.1 Patch available CNA
  • markdown-it-highlightjs (npm) Vendor— Affected before 3.3.1 Fixed in 3.3.1 Patch available GHSA-f246-xrrj-g8j6

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:markdown-it-highlightjs_project:markdown-it-highlightjs:*:*:*:*:*:node.js:*:*before 3.3.1VulnerableMarkdown-it-highlightjs Project

Remediation

  • Fix · CNA markdown-it-highlightjs Fixed in 3.3.1
  • Fix · GHSA-f246-xrrj-g8j6 markdown-it-highlightjs (npm) Fixed in 3.3.1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2020-7773
  2. 2026-10-03 Alias added: GHSA-f246-xrrj-g8j6

References

Sources