CVE-2021-37700
CVSS V2 Medium 4.3
CVSS V3 Medium 6.1
Description
@github/paste-markdown is an npm package for pasting markdown objects. A self Cross-Site Scripting vulnerability exists in the @github/paste-markdown before version 0.3.4. If the clipboard data contains the string `<table>`, a **div** is dynamically created, and the clipboard content is copied into its **innerHTML** property without any sanitization, resulting in improper execution of JavaScript in the browser of the victim (the user who pasted the code). Users directed to copy text from a malicious website and paste it into pages that utilize this library are affected. This is fixed in version 0.3.4. Refer the to the referenced GitHub Advisory for more details including an example exploit.
Overview
- CVE ID
- CVE-2021-37700
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2021-08-12T21:15:09
- Last Modified Date
- 2021-08-23T14:29:29
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:paste-markdown_project:paste-markdown:*:*:*:*:*:node.js:*:* | 1 | OR | 0.3.4 |
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://github.com/github/paste-markdown/releases/tag/v0.3.4 | Release Notes Third Party Advisory |
https://www.npmjs.com/package/@github/paste-markdown | Product Third Party Advisory |
https://github.com/github/paste-markdown/security/advisories/GHSA-gpfj-4j6g-c4w9 | Exploit Third Party Advisory |
https://github.com/github/paste-markdown/commit/32b7ea3f29ae8f256f9d19768387be42678ddf30 | Patch Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-37700 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-37700 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 06:56:29 | Added to TrackCVE | |||
2022-12-05 08:08:09 | 2021-08-12T21:15Z | 2021-08-12T21:15:09 | CVE Published Date | updated |
2022-12-05 08:08:09 | 2021-08-23T14:29:29 | CVE Modified Date | updated | |
2022-12-05 08:08:09 | Analyzed | Vulnerability Status | updated |