{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2020-7773","published":"2020-11-16T12:15:14.463000Z","last_modified":"2026-06-17T03:25:25.287000Z","status":"Modified","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:markdown-it-highlightjs_project:markdown-it-highlightjs:*:*:*:*:*:node.js:*:*","part":"a","vendor":"markdown-it-highlightjs_project","product":"markdown-it-highlightjs","version_end_excluding":"3.3.1"}],"cpes_truncated":false,"vendors":["markdown-it-highlightjs_project"],"products":["markdown-it-highlightjs_project/markdown-it-highlightjs"],"epss":{"score":0.01362,"percentile":0.71939,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-f246-xrrj-g8j6","ecosystem":"npm","name":"markdown-it-highlightjs","purl":"pkg:npm/markdown-it-highlightjs","ranges":[{"introduced":"0","fixed":"3.3.1"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":52,"links":{"html_es":"/es/cve/CVE-2020-7773/","html_en":"/en/cve/CVE-2020-7773/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-7773","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-7773"},"untrusted":{"vendor_name":"Markdown-it-highlightjs Project","product_name":"Markdown-it-highlightjs","desc_en":"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":[],"references":[{"url":"https://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52","tags":["Broken Link"]},{"url":"https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14","tags":["Exploit","Third Party Advisory"]},{"url":"https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461","tags":["Mitigation","Third Party Advisory"]}]}}