netlify-cms-widget-markdown@2.11.3 vulnerabilities

Widget for editing markdown in Netlify CMS.

Direct Vulnerabilities

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

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