{"id":"CVE-2020-7773","state":"PUBLISHED","title":"Cross-site Scripting (XSS)","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);","publishedAt":"2020-11-16T12:00:24.377Z","updatedAt":"2024-09-16T22:09:13.146Z","severity":{"score":6.5,"label":"Medium","version":"3.1","vector":"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","source":"snyk"},"assigner":"snyk","products":["n/a markdown-it-highlightjs"],"affected":[{"vendor":"n/a","product":"markdown-it-highlightjs","versions":[{"version":"unspecified","status":"affected","lessThan":"3.3.1","versionType":"custom"}]}],"references":["https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461","https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14","https://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52"],"weaknesses":[],"ingestedAt":"2026-10-29T19:47:41.446Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2020/7xxx/CVE-2020-7773.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2020-7773","state":"PUBLISHED","datePublished":"2020-11-16T12:00:24.377Z","dateUpdated":"2024-09-16T22:09:13.146Z","assignerShortName":"snyk","assignerOrgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateReserved":"2020-01-21T00:00:00.000Z"},"containers":{"cna":{"title":"Cross-site Scripting (XSS)","descriptions":[{"lang":"en","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);"}],"affected":[{"vendor":"n/a","product":"markdown-it-highlightjs","versions":[{"version":"unspecified","status":"affected","lessThan":"3.3.1","versionType":"custom"}]}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461","tags":["x_refsource_MISC"]},{"url":"https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14","tags":["x_refsource_MISC"]},{"url":"https://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","exploitCodeMaturity":"PROOF_OF_CONCEPT","integrityImpact":"NONE","privilegesRequired":"NONE","remediationLevel":"OFFICIAL_FIX","reportConfidence":"CONFIRMED","scope":"UNCHANGED","temporalScore":5.9,"temporalSeverity":"MEDIUM","userInteraction":"REQUIRED","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","version":"3.1"}}],"problemTypes":[{"descriptions":[{"description":"Cross-site Scripting (XSS)","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"snyk","dateUpdated":"2020-11-16T12:00:24.000Z","orgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730"},"credits":[{"lang":"en","value":"ooooooo_q"}],"datePublic":"2020-11-16T00:00:00.000Z","x_legacyV4Record":{"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"}]}},"credit":[{"lang":"eng","value":"ooooooo_q"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","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":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","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","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Cross-site Scripting (XSS)"}]}]},"references":{"reference_data":[{"name":"https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461","refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461"},{"name":"https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14","refsource":"MISC","url":"https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14"},{"name":"https://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52","refsource":"MISC","url":"https://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T09:41:01.557Z"}}]}}}