Files
CVEs-PoC/2020/CVE-2020-7773.md
T
2024-05-25 21:48:12 +02:00

18 lines
957 B
Markdown

### [CVE-2020-7773](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7773)
![](https://img.shields.io/static/v1?label=Product&message=markdown-it-highlightjs&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3C%203.3.1%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=Cross-site%20Scripting%20(XSS)&color=brighgreen)
### 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);
### POC
#### Reference
- https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461
#### Github
No PoCs found on GitHub currently.