Lucene search

K
osvGoogleOSV:CVE-2020-7773
HistoryNov 16, 2020 - 12:15 p.m.

CVE-2020-7773

2020-11-1612:15:14
Google
osv.dev
5
markdown-it-highlightjs
vulnerability
lang parameter
javascript
inline code.

AI Score

7.2

Confidence

High

EPSS

0.001

Percentile

38.7%

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

AI Score

7.2

Confidence

High

EPSS

0.001

Percentile

38.7%

Related for OSV:CVE-2020-7773