Live threats

All CVEs / Paste-markdown Project

CVE-2021-37700Paste-markdown Project Paste-markdown

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
1.7%
probability of exploitation in 30 days · percentile 77
Auth required
No
Published
Aug 12, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

@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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Paste-markdown.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm @github/paste-markdown < 0.3.4 0.3.4 npm install @github/paste-markdown@0.3.4

Per OSV / GitHub Advisories (GHSA-gpfj-4j6g-c4w9). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
paste-markdown_projectpaste-markdown< 0.3.4

Official sources

References

Links published by the sources. Open them with care.