{"cve":"CVE-2021-37700","nvd":{"published":"2021-08-12T21:15:09.173","modified":"2026-06-17T04:01:00.793","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/github/paste-markdown/commit/32b7ea3f29ae8f256f9d19768387be42678ddf30","https://github.com/github/paste-markdown/releases/tag/v0.3.4","https://github.com/github/paste-markdown/security/advisories/GHSA-gpfj-4j6g-c4w9","https://www.npmjs.com/package/%40github/paste-markdown","https://github.com/github/paste-markdown/commit/32b7ea3f29ae8f256f9d19768387be42678ddf30"],"products":["paste-markdown_project:paste-markdown"],"source":"nvd","synced_at":"2026-10-19T21:21:57.125947417+00:00"},"epss":{"cve":"CVE-2021-37700","score":0.0166,"percentile":0.76676,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-gpfj-4j6g-c4w9","url":"https://osv.dev/vulnerability/GHSA-gpfj-4j6g-c4w9","summary":"Clipboard-based DOM-XSS","modified":"2026-07-08T06:28:23.280733876Z","packages":[{"ecosystem":"npm","name":"@github/paste-markdown","purl":"pkg:npm/%40github/paste-markdown","ranges":["<0.3.4"],"fixed":["0.3.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}