Arbitrary Code Execution Affecting quill package, versions >=1.0.0-beta.0 <1.0.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDnpm:quill:20160916
  • published28 Feb 2017
  • disclosed15 Sept 2016
  • creditSajjad Hashemian

Introduced: 15 Sep 2016

CVE NOT AVAILABLE CWE-94  (opens in a new tab)

How to fix?

Upgrade quill to version 1.0.4 or higher.

Overview

quill is powerful, rich text editor. Affected versions of the package are vulnerable to Arbitrary Code Execution due to not sanitizing user input when in the pasteHTML() function. The function was renamed, deprecated and was set to be removed in version 2.0.0.

var quill = new Quill('#editor', {
  theme: 'snow'
});

quill.pasteHTML('<img src=// onerror="alert(&#39;Not Found!&#39;)">');

CVSS Scores

version 3.1