Clipboard-based DOM-XSS
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
@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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| GitHub | paste-markdown | before 0.3.4 | 0.3.4 | Patch available | CNA |
| — | @github/paste-markdown (npm) | before 0.3.4 | 0.3.4 | Patch available | GHSA-gpfj-4j6g-c4w9 |
- paste-markdown VendorGitHub Affected before 0.3.4 Fixed in 0.3.4 Patch available CNA
- @github/paste-markdown (npm) Vendor— Affected before 0.3.4 Fixed in 0.3.4 Patch available GHSA-gpfj-4j6g-c4w9
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:paste-markdown_project:paste-markdown:*:*:*:*:*:node.js:*:* | before 0.3.4 | Vulnerable | Paste-markdown Project |
- cpe:2.3:a:paste-markdown_project:paste-markdown:*:*:*:*:*:node.js:*:* Versions before 0.3.4 Vulnerable ·Paste-markdown Project
Remediation
- Fix · CNA paste-markdown (github) Fixed in 0.3.4
- Fix · GHSA-gpfj-4j6g-c4w9 @github/paste-markdown (npm) Fixed in 0.3.4 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-37700
- 2026-10-03 Alias added: GHSA-gpfj-4j6g-c4w9
References
Advisory 2
More GitHub vulnerabilities
- TI-2024-04632 An authentication bypass vulnerability was present in the GitHub Enterprise Server (GHES)… CVSS 4.0CRITICAL 10.0
- TI-2024-00181 Unsafe Reflection in Github Enterprise Server leading to Command Injection CVSS 3.1CRITICAL 9.8
- TI-2024-00466 Privilege Escalation by Code Injection in the Management Console in GitHub Enterprise Server CVSS 3.1HIGH 8.8
- TI-2022-08539 Integer overflow in table parsing extension leads to heap memory corruption CVSS 3.1CRITICAL 9.8
- TI-2026-34990 GitHub MCP Server: Nil Pointer Dereference DoS in completion/complete Handler CVSS 3.1HIGH 7.5
- TI-2026-32884 GitHub Copilot CLI: Nested Bare Repository Can Execute Arbitrary Commands via core.fsmonitor CVSS 4.0HIGH 8.5
Sources
- CVE-2021-37700 · CVE Program
- CVE-2021-37700 · NVD
- FIRST EPSS
- GHSA-gpfj-4j6g-c4w9 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences