DOM-based cross-site scripting in Froala Editor
Date: 2022-02
Affected: npm/froala-editor
Attack vector: xss
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2019-19935
CWE: CWE-79
CVSS: 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)

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.


Mitigations:

Architectural layers (MAESTRO):