CVE-2020-7773

Cross-site Scripting (XSS)

Medium · published November 16, 2020

CVSS v3.1
6.5
EPSS
1%
Percentile
71.5
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS v3.1
6.5 · MEDIUM
Vector
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
CVSS v4.0
Not supplied
EPSS
0.01362 · 71.5th percentile
Published
2020-11-16T12:00Z
EPSS history
Timeline
  • 16 NOV 12:00Z
    Cross-site Scripting (XSS)
    cvelistv5