{"id":"EUVD-2022-0966","enisaUuid":"297ac07b-3ee9-3646-9abd-5836cef0bb6f","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 \u003d require(\"markdown-it-highlightjs\"); const md \u003d require(\u0027markdown-it\u0027); const reuslt_xss \u003d md() .use(markdownItHighlightjs, { inline: true }) .render(\u0027console.log(42){.\"\u003ejs}\u0027); console.log(reuslt_xss);","datePublished":"Nov 16, 2020, 12:00:24 PM","dateUpdated":"Sep 16, 2024, 10:09:13 PM","baseScore":6.5,"baseScoreVersion":"3.1","baseScoreVector":"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","references":"https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461\nhttps://github.com/valeriangalliat/markdown-it-highlightjs/pull/14\nhttps://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52\n","aliases":"CVE-2020-7773\nGHSA-f246-xrrj-g8j6\n","assigner":"snyk","epss":1.36,"enisaIdProduct":[{"id":"ceecf8bf-0ba1-3e24-b901-5700649b7d95","product":{"name":"markdown-it-highlightjs","vendor":{"name":"n/a"}},"product_version":"unspecified \u003c3.3.1"}],"enisaIdVendor":[{"id":"a67e190b-4e77-35a3-a884-5e914be3d1ef","vendor":{"name":"n/a"}}],"enisaIdVulnerability":[{"id":"1baf7240-da00-3553-9c7c-1e30ef896f56","vulnerability":{"id":"GHSA-f246-xrrj-g8j6","description":"Cross-site Scripting in markdown-it-highlightjs","datePublished":"Feb 10, 2022, 8:19:47 PM","dateUpdated":"Sep 5, 2023, 10:52:01 PM","baseScore":null,"references":"https://nvd.nist.gov/vuln/detail/CVE-2020-7773\nhttps://github.com/valeriangalliat/markdown-it-highlightjs/pull/14\nhttps://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52\nhttps://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461\n","enisa_id":"EUVD-2022-0966\n","aliases":"GHSA-f246-xrrj-g8j6\nCVE-2020-7773\n","epss":0.0,"dataProcessed":"Nov 22, 2026, 2:07:35 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"b85f388c-3d7f-32f2-be04-72e806a81b77","vulnerability":{"id":"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 \u003d require(\"markdown-it-highlightjs\"); const md \u003d require(\u0027markdown-it\u0027); const reuslt_xss \u003d md() .use(markdownItHighlightjs, { inline: true }) .render(\u0027console.log(42){.\"\u003ejs}\u0027); console.log(reuslt_xss);","datePublished":"Nov 16, 2020, 12:00:24 PM","dateUpdated":"Sep 16, 2024, 10:09:13 PM","status":"PUBLISHED","baseScore":6.5,"baseScoreVersion":"3.1","baseScoreVector":"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","references":"https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461\nhttps://github.com/valeriangalliat/markdown-it-highlightjs/pull/14\nhttps://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52\n","enisa_id":"EUVD-2022-0966\n","assigner":"snyk","epss":1.36,"dataProcessed":"Nov 22, 2026, 7:24:38 AM","vulnerabilityProduct":[{"id":"d9382b75-0883-3710-8c0e-3aebf86ee1ce","product":{"name":"markdown-it-highlightjs","vendor":{"name":"n/a"}},"product_version":"unspecified \u003c3.3.1"}],"vulnerabilityVendor":[{"id":"ae482e40-6f06-3e51-ad02-afe57813a632","vendor":{"name":"n/a"}}]}}],"enisaIdAdvisory":[]}