netlify-cms-widget-markdown@2.0.6 vulnerabilities

Widget for editing markdown in Netlify CMS.

  • latest version

    2.15.1

  • latest non vulnerable version

  • first published

    6 years ago

  • latest version published

    2 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the netlify-cms-widget-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)

    netlify-cms-widget-markdown is a markdown package for netlify-cms.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS). It is possible to insert malicious JavaScript when creating a post using the markdown editor feature. This malicious JavaScript is then stored within the application and is executed when a user visits this webpage.

    PoC

    https://cms-demo.netlify.com/#/collections/posts/new
    Switch to markdown mode in edtior.
    Paste the following in to the editor <img src="foobar.png" onerror="alert('hello')">
    See the alert dialog.
    

    How to fix Cross-site Scripting (XSS)?

    Upgrade netlify-cms-widget-markdown to version 2.12.9 or higher.

    <2.12.9