CVE-2021-37700 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/github/paste-markdown/commit/32b7ea3f29ae8f256f9d19768387be42678ddf30 | CVE | PatchThird Party Advisory |
| https://github.com/github/paste-markdown/releases/tag/v0.3.4 | CVE | Release NotesThird Party Advisory |
| https://github.com/github/paste-markdown/security/advisories/GHSA-gpfj-4j6g-c4w9 | CVE | ExploitThird Party Advisory |
| https://www.npmjs.com/package/%40github/paste-markdown | CVE | |
| https://github.com/github/paste-markdown/commit/32b7ea3f29ae8f256f9d19768387be42678ddf30 | [email protected] | PatchThird Party Advisory |
| https://github.com/github/paste-markdown/releases/tag/v0.3.4 | [email protected] | Release NotesThird Party Advisory |
| https://github.com/github/paste-markdown/security/advisories/GHSA-gpfj-4j6g-c4w9 | [email protected] | ExploitThird Party Advisory |
| https://www.npmjs.com/package/%40github/paste-markdown | [email protected] |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| paste-markdown project paste-markdown | < 0.3.4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Nov 7, 2023 | CVE Modified | [email protected] |
| Aug 23, 2021 | Initial Analysis | [email protected] |