@github/paste-markdown/.../paste-markdown@0.2.0 vulnerabilities

Paste spreadsheet cells as a Markdown table.

  • latest version

    1.5.3

  • latest non vulnerable version

  • first published

    6 years ago

  • latest version published

    8 months ago

  • licenses detected

  • Direct Vulnerabilities

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

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable 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