CVE-2020-7773 Vulnerability Details

  /     /     /  

CVE-2020-7773 Metadata Quick Info

CVE Published: 16/11/2020 | CVE Updated: 16/09/2024 | CVE Year: 2020
Source: snyk | Vendor: n/a | Product: markdown-it-highlightjs
Status : PUBLISHED

CVE-2020-7773 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 Version: 3.1 | Base Score: 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

l➤ Exploitability Metrics:
    Attack Vector (AV)* NETWORK
    Attack Complexity (AC)* LOW
    Privileges Required (PR)* NONE
    User Interaction (UI)* REQUIRED
    Scope (S)* UNCHANGED

l➤ Impact Metrics:
    Confidentiality Impact (C)* HIGH
    Integrity Impact (I)* NONE
    Availability Impact (A)* NONE

Weakness Enumeration (CWE)

CWE-ID:
CWE Name: Cross-site Scripting (XSS)
Source: n/a

Common Attack Pattern Enumeration and Classification (CAPEC)

CAPEC-ID:
CAPEC Description:


Source: NVD (National Vulnerability Database).