CVE-2020-7773
Last modified
CVE-2020-7773 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 1.35% chance of exploitation in the next 30 days.
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);
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Markdown-It-Highlightjs Project | Markdown-It-Highlightjs | < 3.3.1 |
References
- https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461Mitigation, Third Party Advisory
- https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461Mitigation, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2020-7773?
How severe is CVE-2020-7773?
How do I fix CVE-2020-7773?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2020
- CVE-2020-7767All versions of package express-validators are vulnerable to…5.3
- CVE-2020-7768The package grpc before 1.24.4; the package @grpc/grpc-js be…9.8
- CVE-2020-7769This affects the package nodemailer before 6.4.16. Use of cr…9.8
- CVE-2020-7770This affects the package json8 before 1.0.3. The function ad…9.8
- CVE-2020-7771The package asciitable.js before 1.0.3 are vulnerable to Pro…9.8
- CVE-2020-7772This affects the package doc-path before 2.1.2.9.8
- CVE-2020-7774The package y18n before 3.2.2, 4.0.1 and 5.0.5, is vulnerabl…9.8
- CVE-2020-7775This affects all versions of package freediskspace. The vuln…9.8
- CVE-2020-7776This affects the package phpoffice/phpspreadsheet from 0.0.0…6.4
- CVE-2020-7777This affects all versions of package jsen. If an attacker ca…7.2
- CVE-2020-7778This affects the package systeminformation before 4.30.2. Th…7.3
- CVE-2020-7779All versions of package djvalidator are vulnerable to Regula…7.5
Are you affected by CVE-2020-7773?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
