Read the docs
TI-2021-15575 Aliases CVE-2021-37700GHSA-gpfj-4j6g-c4w9

Clipboard-based DOM-XSS

Priority LOW 32CWE-79Published · Updated

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

EPSS 0.0166 76th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed paste-markdown (github): 0.3.4@github/paste-markdown (npm): 0.3.4

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
GitHubpaste-markdownbefore 0.3.40.3.4Patch availableCNA
—@github/paste-markdown (npm)before 0.3.40.3.4Patch availableGHSA-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

CPEVersionsRoleVendor
cpe:2.3:a:paste-markdown_project:paste-markdown:*:*:*:*:*:node.js:*:*before 0.3.4VulnerablePaste-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

  1. 2026-10-02 Threatist record created from CVE-2021-37700
  2. 2026-10-03 Alias added: GHSA-gpfj-4j6g-c4w9

References

  • 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
See all 178 →

Sources