{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"cvssV3_1": {"scope": "CHANGED", "version": "3.1", "baseScore": 6.1, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "integrityImpact": "LOW", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "NONE", "privilegesRequired": "NONE", "confidentialityImpact": "LOW"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"MODERATE\"}"}}}], "affected": [{"vendor": "npm", "product": "markdown-it-highlightjs", "versions": [{"status": "affected", "version": "0", "lessThan": "3.3.1", "versionType": "semver"}], "defaultStatus": "unaffected"}], "references": [{"url": "https://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52"}, {"url": "https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14"}, {"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-7773"}, {"url": "https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461"}], "descriptions": [{"lang": "en", "value": "Cross-site Scripting in markdown-it-highlightjs"}, {"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. \n\n```js\nconst markdownItHighlightjs = require(\"markdown-it-highlightjs\");\nconst md = require('markdown-it'); \nconst reuslt_xss = md().use(markdownItHighlightjs, { inline: true }).render('console.log(42){.\">js}'); \nconsole.log(reuslt_xss);\n```"}], "providerMetadata": {"orgId": "386269d4-a6c6-4eaa-bf8e-bc0b0d010558", "shortName": "npm", "dateUpdated": "2022-02-10T20:19:47Z", "x_subShortName": "npm"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 4.3, "accessVector": "NETWORK", "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "MEDIUM", "availabilityImpact": "NONE", "confidentialityImpact": "NONE"}}, {"format": "CVSS", "cvssV3_1": {"scope": "CHANGED", "version": "3.1", "baseScore": 6.1, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "integrityImpact": "LOW", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "NONE", "privilegesRequired": "NONE", "confidentialityImpact": "LOW"}}, {"format": "CVSS", "cvssV3_1": {"scope": "UNCHANGED", "version": "3.1", "baseScore": 6.5, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N", "integrityImpact": "NONE", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "NONE", "privilegesRequired": "NONE", "confidentialityImpact": "HIGH"}}], "affected": [{"cpes": ["cpe:2.3:a:markdown-it-highlightjs_project:markdown-it-highlightjs:*:*:*:*:*:node.js:*:*"], "vendor": "markdown-it-highlightjs_project", "product": "markdown-it-highlightjs", "versions": [{"status": "affected", "version": "0", "lessThan": "3.3.1", "versionType": "custom"}], "platforms": ["node.js"], "defaultStatus": "unaffected"}], "references": [{"url": "https://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52", "tags": ["broken-link"]}, {"url": "https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14", "tags": ["exploit", "third-party-advisory"]}, {"url": "https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461", "tags": ["mitigation", "third-party-advisory"]}], "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);"}, {"lang": "es", "value": "Esto afecta al paquete markdown-it-highlightjs versiones anteriores a 3.3.1.&#xa0;Es posible insertar JavaScript malicioso como valor de lang en la funcionalidad de resaltado de código en línea markdown-it-highlightjs.&#xa0;const markdownItHighlightjs = require(\"markdown-it-highlightjs\");&#xa0;const md = require(\"markdown-it\");&#xa0;const reuslt_xss = md() .use(markdownItHighlightjs, {inline: true}) .render(\"console.log(42){.\")js}'); console.log(reuslt_xss)"}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-79", "description": "CWE-79"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2020-11-16T12:15:14Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2020-7773", "state": "PUBLISHED", "dateUpdated": "2024-11-21T05:37:46Z", "assignerOrgId": "bae035ff-b466-4ff4-94d0-fc9efd9e1730", "datePublished": "2020-11-16T12:15:14Z", "assignerShortName": "snyk"}, "dataVersion": "5.0"}