From 869952dd223dd2956654dc84786c039844c9d05c Mon Sep 17 00:00:00 2001 From: "advisory-db[bot]" <45398580+advisory-db[bot]@users.noreply.github.com> Date: Thu, 12 Aug 2021 20:41:08 +0000 Subject: [PATCH] Add CVE-2021-37700 for GHSA-gpfj-4j6g-c4w9 Add CVE-2021-37700 for GHSA-gpfj-4j6g-c4w9 --- 2021/37xxx/CVE-2021-37700.json | 92 +++++++++++++++++++++++++++++++--- 1 file changed, 86 insertions(+), 6 deletions(-) diff --git a/2021/37xxx/CVE-2021-37700.json b/2021/37xxx/CVE-2021-37700.json index 692c37accd8..4e08403e58e 100644 --- a/2021/37xxx/CVE-2021-37700.json +++ b/2021/37xxx/CVE-2021-37700.json @@ -1,18 +1,98 @@ { - "data_type": "CVE", - "data_format": "MITRE", - "data_version": "4.0", "CVE_data_meta": { + "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2021-37700", - "ASSIGNER": "cve@mitre.org", - "STATE": "RESERVED" + "STATE": "PUBLIC", + "TITLE": "Clipboard-based DOM-XSS" }, + "affects": { + "vendor": { + "vendor_data": [ + { + "product": { + "product_data": [ + { + "product_name": "paste-markdown", + "version": { + "version_data": [ + { + "version_value": "< 0.3.4" + } + ] + } + } + ] + }, + "vendor_name": "github" + } + ] + } + }, + "data_format": "MITRE", + "data_type": "CVE", + "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", - "value": "** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided." + "value": "@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 ``, 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.\n" } ] + }, + "impact": { + "cvss": { + "attackComplexity": "LOW", + "attackVector": "NETWORK", + "availabilityImpact": "NONE", + "baseScore": 6.5, + "baseSeverity": "MEDIUM", + "confidentialityImpact": "HIGH", + "integrityImpact": "NONE", + "privilegesRequired": "NONE", + "scope": "UNCHANGED", + "userInteraction": "REQUIRED", + "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N", + "version": "3.1" + } + }, + "problemtype": { + "problemtype_data": [ + { + "description": [ + { + "lang": "eng", + "value": "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')" + } + ] + } + ] + }, + "references": { + "reference_data": [ + { + "name": "https://github.com/github/paste-markdown/security/advisories/GHSA-gpfj-4j6g-c4w9", + "refsource": "CONFIRM", + "url": "https://github.com/github/paste-markdown/security/advisories/GHSA-gpfj-4j6g-c4w9" + }, + { + "name": "https://github.com/github/paste-markdown/commit/32b7ea3f29ae8f256f9d19768387be42678ddf30", + "refsource": "MISC", + "url": "https://github.com/github/paste-markdown/commit/32b7ea3f29ae8f256f9d19768387be42678ddf30" + }, + { + "name": "https://github.com/github/paste-markdown/releases/tag/v0.3.4", + "refsource": "MISC", + "url": "https://github.com/github/paste-markdown/releases/tag/v0.3.4" + }, + { + "name": "https://www.npmjs.com/package/@github/paste-markdown", + "refsource": "MISC", + "url": "https://www.npmjs.com/package/@github/paste-markdown" + } + ] + }, + "source": { + "advisory": "GHSA-gpfj-4j6g-c4w9", + "discovery": "UNKNOWN" } } \ No newline at end of file