netlify-cms-widget-markdown@2.4.1-beta.1 vulnerabilities

Widget for editing markdown in Netlify CMS.

  • latest version

    2.15.1

  • latest non vulnerable version

  • first published

    7 years ago

  • latest version published

    3 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.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    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