@github/paste-markdown@0.2.6 vulnerabilities

Paste spreadsheet cells as a Markdown table.

Direct Vulnerabilities

Known vulnerabilities in the @github/paste-markdown package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Cross-site Scripting (XSS)

@github/paste-markdown is a package that pastes Markdown objects.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS). 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.

How to fix Cross-site Scripting (XSS)?

Upgrade @github/paste-markdown to version 0.3.4 or higher.

<0.3.4