{"api_version":"1","generated_at":"2026-07-23T15:45:29+00:00","cve":"CVE-2020-7773","urls":{"html":"https://cve.report/CVE-2020-7773","api":"https://cve.report/api/cve/CVE-2020-7773.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-7773","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-7773"},"summary":{"title":"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);","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2020-11-16 12:15:00","updated_at":"2020-12-01 13:23:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52","name":"N/A","refsource":"CONFIRM","tags":["Broken Link"],"title":"","mime":"","httpstatus":"","archivestatus":""},{"url":"https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461","name":"N/A","refsource":"CONFIRM","tags":["Mitigation","Third Party Advisory"],"title":"Cross-site Scripting (XSS) in markdown-it-highlightjs | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14","name":"N/A","refsource":"CONFIRM","tags":["Exploit","Third Party Advisory"],"title":"fix: escape invalid lang characters (XSS) by ooooooo-q · Pull Request #14 · valeriangalliat/markdown-it-highlightjs · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js#L52","name":"MISC:https://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52","refsource":"MITRE","tags":[],"title":"markdown-it-highlightjs/index.js at v3.3.0 · valeriangalliat/markdown-it-highlightjs · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-7773","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7773","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"ooooooo_q","lang":""}],"nvd_cpes":[{"cve_year":"2020","cve_id":"7773","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"markdown-it-highlightjs_project","cpe5":"markdown-it-highlightjs","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"7773","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"markdown-it-highlightjs_project","cpe5":"markdown-it-highlightjs","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2020-11-16T11:58:00.563282Z","ID":"CVE-2020-7773","STATE":"PUBLIC","TITLE":"Cross-site Scripting (XSS)"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"markdown-it-highlightjs","version":{"version_data":[{"version_affected":"<","version_value":"3.3.1"}]}}]},"vendor_name":"n/a"}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Cross-site Scripting (XSS)"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461","name":"https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461"},{"refsource":"MISC","url":"https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14","name":"https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14"},{"refsource":"MISC","url":"https://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52","name":"https://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52"}]},"description":{"description_data":[{"lang":"eng","value":"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);"}]},"impact":{"cvss":{"version":"3.1","vectorString":"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","baseScore":6.5,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE"}},"credit":[{"lang":"eng","value":"ooooooo_q"}]},"nvd":{"publishedDate":"2020-11-16 12:15:00","lastModifiedDate":"2020-12-01 13:23:00","problem_types":["CWE-79"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":2.7},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:markdown-it-highlightjs_project:markdown-it-highlightjs:*:*:*:*:*:node.js:*:*","versionEndExcluding":"3.3.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2020","CveId":"7773","Ordinal":"168054","Title":"CVE-2020-7773","CVE":"CVE-2020-7773","Year":"2020"},"notes":[{"CveYear":"2020","CveId":"7773","Ordinal":"1","NoteData":"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);","Type":"Description","Title":null},{"CveYear":"2020","CveId":"7773","Ordinal":"2","NoteData":"2020-11-16","Type":"Other","Title":"Published"},{"CveYear":"2020","CveId":"7773","Ordinal":"3","NoteData":"2020-11-16","Type":"Other","Title":"Modified"}]}}}