@github/paste-markdown is an npm package for pasting markdown objects. A self Cross-Site Scripting…
Historical advisory recorded 24 Oct 2026 18:17:33 UTC. Read the latest advisory.
nvd · CVE-2021-37700
Published@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.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2021-37700
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Modified
Weakness classifications: CWE-79
Original publisher date fields
published: 2021-08-12T21:15:09.173
lastModified: 2026-06-17T04:01:00.793
1 source CPE criteria · context only
- cpe:2.3:a:paste-markdown_project:paste-markdown:*:*:*:*:*:node.js:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON