{"containers":{"cna":{"affected":[{"product":"markdown-it-highlightjs","vendor":"n/a","versions":[{"lessThan":"3.3.1","status":"affected","version":"unspecified","versionType":"custom"}]}],"credits":[{"lang":"en","value":"ooooooo_q"}],"datePublic":"2020-11-16T00:00:00.000Z","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);"}],"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":{"dateUpdated":"2020-11-16T12:00:24.000Z","orgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","shortName":"snyk"},"references":[{"tags":["x_refsource_MISC"],"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"}],"title":"Cross-site Scripting (XSS)","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":[{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-04T09:41:01.557Z"},"title":"CVE Program Container","references":[{"tags":["x_refsource_MISC","x_transferred"],"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"}]}]},"cveMetadata":{"assignerOrgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","assignerShortName":"snyk","cveId":"CVE-2020-7773","datePublished":"2020-11-16T12:00:24.377Z","dateReserved":"2020-01-21T00:00:00.000Z","dateUpdated":"2024-09-16T22:09:13.146Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"}