CVE-2020-7773

Cross-site Scripting (XSS)

MEDIUM
6.1
CVSS Score
Published: November 16, 2020 at 12:00 PM UTC
Updated: June 17, 2026 at 03:25 AM UTC
1 product affected across 1 vendorMarkdown IT Highlightjs

Using markdown-it-highlightjs by N/A?

Get instant alerts when new vulnerabilities affect markdown-it-highlightjs - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.1
Exploit prediction
EPSS 1%

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 3.3.1
Affected range stops below 3.3.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card