{"id":"EUVD-2022-0966","revision":"6daee1a9381a40a291f86ca0cc9e4fcf","records":[{"revision":"6daee1a9381a40a291f86ca0cc9e4fcf","observedAt":"2026-11-22T07:35:15.665+00:00","statement":{"source":"euvd","id":"EUVD-2022-0966","aliases":["CVE-2020-7773","GHSA-f246-xrrj-g8j6"],"title":"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…","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);","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 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","score":6.5,"severity":null}],"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"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-0966","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Nov 16, 2020, 12:00:24 PM","dateUpdated":"Sep 16, 2024, 10:09:13 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2022-0966","identifiers":["EUVD-2022-0966","CVE-2020-7773","GHSA-f246-xrrj-g8j6"]},"retained":false,"historicalAffected":[]}],"coverage":[]}