CVE-2020-7773

Source
https://cve.org/CVERecord?id=CVE-2020-7773
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2020-7773.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2020-7773
Aliases
Related
  • SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461
Published
2020-11-16T12:15:14.463Z
Modified
2026-04-11T23:12:36.807020Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
[none]
Details

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 reusltxss = md() .use(markdownItHighlightjs, { inline: true }) .render('console.log(42){.">js}'); console.log(reusltxss);

References

Affected packages

Git / github.com/valeriangalliat/markdown-it-highlightjs

Affected ranges

Type
GIT
Repo
https://github.com/valeriangalliat/markdown-it-highlightjs
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "cpe": "cpe:2.3:a:markdown-it-highlightjs_project:markdown-it-highlightjs:*:*:*:*:*:node.js:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "3.3.1"
        }
    ],
    "source": "CPE_FIELD"
}

Affected versions

v1.*
v1.0.0
v1.1.0
v1.1.1
v1.1.2
v2.*
v2.0.0
v3.*
v3.1.0
v3.2.0
v3.3.0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2020-7773.json"