{"cve":"CVE-2020-7773","nvd":{"published":"2020-11-16T12:15:14.463","modified":"2026-06-17T03:25:25.287","status":"Modified","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);","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52","https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14","https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461","https://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52","https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14"],"products":["markdown-it-highlightjs_project:markdown-it-highlightjs"],"source":"nvd","synced_at":"2026-10-19T21:11:20.317016139+00:00"},"epss":{"cve":"CVE-2020-7773","score":0.01362,"percentile":0.71773,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-f246-xrrj-g8j6","url":"https://osv.dev/vulnerability/GHSA-f246-xrrj-g8j6","summary":"Cross-site Scripting in markdown-it-highlightjs","modified":"2026-07-08T06:49:30.432173525Z","packages":[{"ecosystem":"npm","name":"markdown-it-highlightjs","purl":"pkg:npm/markdown-it-highlightjs","ranges":["<3.3.1"],"fixed":["3.3.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}