CVE-2020-7773
CVSS V2 Medium 4.3
CVSS V3 Medium 6.1
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);
Overview
- CVE ID
- CVE-2020-7773
- Assigner
- report@snyk.io
- Vulnerability Status
- Analyzed
- Published Version
- 2020-11-16T12:15:14
- Last Modified Date
- 2020-12-01T13:23:29
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:markdown-it-highlightjs_project:markdown-it-highlightjs:*:*:*:*:*:node.js:*:* | 1 | OR | 3.3.1 |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:M/Au:N/C:N/I:P/A:N
- Access Vector
- NETWORK
- Access Compatibility
- MEDIUM
- Authentication
- NONE
- Confidentiality Impact
- NONE
- Integrity Impact
- PARTIAL
- Availability Impact
- NONE
- Base Score
- 4.3
- Severity
- MEDIUM
- Exploitability Score
- 8.6
- Impact Score
- 2.9
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- REQUIRED
- Scope
- CHANGED
- Confidentiality Impact
- LOW
- Availability Impact
- NONE
- Base Score
- 6.1
- Base Severity
- MEDIUM
- Exploitability Score
- 2.8
- Impact Score
- 2.7
References
Reference URL | Reference Tags |
---|---|
https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461 | Mitigation Third Party Advisory |
https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14 | Exploit Third Party Advisory |
https://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52 | Broken Link |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2020-7773 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7773 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 07:32:29 | Added to TrackCVE | |||
2022-12-05 16:51:50 | 2020-11-16T12:15Z | 2020-11-16T12:15:14 | CVE Published Date | updated |
2022-12-05 16:51:50 | 2020-12-01T13:23:29 | CVE Modified Date | updated | |
2022-12-05 16:51:50 | Analyzed | Vulnerability Status | updated |