CVE-2020-7773

Cross-site Scripting (XSS)

Published Nov 16, 2020 CVSS 3.1 · 6.5 Medium EPSS 1.4% KEV · Not listed
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);

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-0966 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);
Github GHSA Github GHSA GHSA-f246-xrrj-g8j6 Cross-site Scripting in markdown-it-highlightjs
History

No history.

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
Sep 16, 2024, 10:09 PM
Reserved
Jan 21, 2020, 12:00 AM
Status
Modified
Published
Nov 16, 2020, 12:15 PM
Modified
Jun 17, 2026, 3:25 AM