{"id":"CVE-2020-7773","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 reuslt_xss = md() .use(markdownItHighlightjs, { inline: true }) .render('console.log(42){.\"\u003ejs}'); console.log(reuslt_xss);","aliases":["GHSA-f246-xrrj-g8j6"],"modified":"2026-04-11T23:12:36.807020Z","published":"2020-11-16T12:15:14.463Z","related":["SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461"],"references":[{"type":"WEB","url":"https://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52"},{"type":"ADVISORY","url":"https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461"},{"type":"EVIDENCE","url":"https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/valeriangalliat/markdown-it-highlightjs","events":[{"introduced":"0"},{"fixed":"28815d03be5b87dda7b91672fab5025efda0d16a"}],"database_specific":{"cpe":"cpe:2.3:a:markdown-it-highlightjs_project:markdown-it-highlightjs:*:*:*:*:*:node.js:*:*","source":"CPE_FIELD","extracted_events":[{"introduced":"0"},{"fixed":"3.3.1"}]}}],"versions":["v1.0.0","v1.1.0","v1.1.1","v1.1.2","v2.0.0","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"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}