6.5

CVE-2021-37700: github paste-markdown Cross-site Scripting

CVSS: 6.5v3.1MediumModified
AliasesGHSA-gpfj-4j6g-c4w9
Published 12-08-2021Last modified 04-08-2024

Vulnerability summary

CVE-2021-37700 is a medium (CVSS 6.5) Cross-site Scripting vulnerability in github paste-markdown. EPSS estimates a 1.66% chance of exploitation in the next 30 days, higher than 76.3% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
36/100
0100
Medium · default modelHow is this calculated?
CVSS score
6.5/10
010
Medium · v3.1 (CVE.org)
EPSS score
1.66%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Timeline

  1. 12-08-2021
    PublishedVulnerability first disclosed.
  2. 04-08-2024
    Last modifiedVulnerability information updated.

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 metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

1.66%

Chance of exploitation in the next 30 days

Percentile

76%

Versus all other CVEs

30-day change

0.00 pp

From 1.66% on 19-09-2026

19-09-202619-10-2026
EPSS score
1.66%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Paste Markdown

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

@github1 product
  • paste-markdown< 0.3.4
Github1 product
Paste-markdown_project1 product

3 vendors · 3 products

References

7 links