CVE-2020-7773
Cross-site Scripting (XSS)
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
1Exploited in Wild
-Decision
Descriptions
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);
Esto afecta al paquete markdown-it-highlightjs versiones anteriores a 3.3.1. Es posible insertar JavaScript malicioso como valor de lang en la funcionalidad de resaltado de código en línea markdown-it-highlightjs. 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 Scores
SSVC
- Decision:-
Timeline
- 2020-01-21 CVE Reserved
- 2020-11-16 CVE Published
- 2023-08-02 EPSS Updated
- 2024-09-16 CVE Updated
- 2024-09-16 First Exploit
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CAPEC
References (3)
URL | Tag | Source |
---|---|---|
https://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52 | Broken Link | |
https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461 | Mitigation |
URL | Date | SRC |
---|---|---|
https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14 | 2024-09-16 |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Markdown-it-highlightjs Project Search vendor "Markdown-it-highlightjs Project" | Markdown-it-highlightjs Search vendor "Markdown-it-highlightjs Project" for product "Markdown-it-highlightjs" | < 3.3.1 Search vendor "Markdown-it-highlightjs Project" for product "Markdown-it-highlightjs" and version " < 3.3.1" | node.js |
Affected
|