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.
Recommendation
Update the markdown-it-highlightjs package to the latest compatible version. Followings are version details:
- Affected version(s): < 3.3.1
- Patched version(s): 3.3.1
References
Could your website be exposed too?
SmartScanner can check your website for Cross-site Scripting in markdown-it-highlightjs and gives you actionable findings to investigate.
Start a free scanRelated Issues
- markdown-it-toc Cross-site Scripting due to title of generated toc and contents of header not being escaped - CVE-2020-28455
- Angular vulnerable to Cross-site Scripting - CVE-2020-7676
- Cross-site scripting in jspdf - CVE-2020-7691
- Cross-site scripting in jspdf - jspdf - CVE-2020-7690


