CVE-2020-7773

published 16 Nov 2020 · updated 16 Sep 2024

Cross-site Scripting (XSS)

6.5MediumCVSS 6.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 3.3.1.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
<3.3.13.3.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2020-7773 severity on Zeptric[![CVE-2020-7773](https://zeptric.io/badge/cve/CVE-2020-7773.svg)](https://zeptric.io/cve/CVE-2020-7773)