VDB
Sign up
MEDIUM6.1

GHSA-h236-g5gh-vq6c

DOM-based cross-site scripting in Froala Editor

Quick fix

GHSA-h236-g5gh-vq6c — froala-editor: upgrade to the fixed version with the command below.

npm install froala-editor@3.2.3

Details

Froala WYSIWYG HTML Editor is a lightweight WYSIWYG HTML Editor written in JavaScript that enables rich text editing capabilities for web applications. A DOM-based cross-site scripting (XSS) vulnerability exists in versions before 3.2.3 because HTML code in the editor is not correctly sanitized when inserted into the DOM. This allows an attacker that can control the editor content to execute arbitrary JavaScript in the context of the victim’s session.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/froala-editor
Introduced in: 0Fixed in: 3.2.3
Fixnpm install froala-editor@3.2.3

References