CVE-2021-37700
Summary
| CVE | CVE-2021-37700 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-08-12 21:15:00 UTC |
| Updated | 2023-11-07 03:37:00 UTC |
| 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. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| Clipboard-based DOM-XSS · Advisory · github/paste-markdown · GitHub |
CONFIRM |
github.com |
|
| @github/paste-markdown - npm |
MISC |
www.npmjs.com |
|
| @github/paste-markdown - npm |
|
www.npmjs.com |
|
| Merge pull request from GHSA-gpfj-4j6g-c4w9 · github/paste-markdown@32b7ea3 · GitHub |
MISC |
github.com |
|
| Release v0.3.4: Merge pull request from GHSA-gpfj-4j6g-c4w9 · github/paste-markdown · GitHub |
MISC |
github.com |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 981412 Nodejs (npm) Security Update for @github/paste-markdown (GHSA-gpfj-4j6g-c4w9)