CVE-2020-7773

MediumCVSS 6.1/10Last modified Jun 17, 2026

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

Metrics

CVSS 3.1 6.1/10CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Nov 16, 2020
Last modified
Jun 17, 2026
NVD status
Modified

Related CVEs from 2020

CVE-2020-77749.8The package y18n before 3.2.2, 4.0.1 and 5.0.5, is vulnerable to Prototype Pollution.CVE-2020-77759.8This affects all versions of package freediskspace. The vulnerability arises out of improper neutralization of arguments in line 71 of freedCVE-2020-77766.4This affects the package phpoffice/phpspreadsheet from 0.0.0. The library is vulnerable to XSS when creating an html output from an excel fiCVE-2020-77777.2This affects all versions of package jsen. If an attacker can control the schema file, it could run arbitrary JavaScript code on the victim CVE-2020-77787.3This affects the package systeminformation before 4.30.2. The attacker can overwrite the properties and functions of an object, which can leCVE-2020-77797.5All versions of package djvalidator are vulnerable to Regular Expression Denial of Service (ReDoS) by sending crafted invalid emails - for eCVE-2020-77808.8This affects the package com.softwaremill.akka-http-session:core_2.13 before 0.5.11; the package com.softwaremill.akka-http-session:core_2.1CVE-2020-77819.8This affects the package connection-tester before 0.2.1. The injection point is located in line 15 in index.js. The following PoC demonstratCVE-2020-77829.8This affects all versions of package spritesheet-js. It depends on a vulnerable package platform-command. The injection point is located in CVE-2020-77849.8This affects all versions of package ts-process-promises. The injection point is located in line 45 in main entry of package in lib/process-CVE-2020-77859.8This affects all versions of package node-ps. The injection point is located in line 72 in lib/index.js.CVE-2020-77869.8This affects all versions of package macfromip. The injection point is located in line 66 in macfromip.js.
CVE-2020-7773: Medium severity, CVSS 6.1 | Vulnix