DOM-based cross-site scripting in Froala Editor
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | froala-editor | < 3.2.3 | 3.2.3 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-19935
- https://blog.compass-security.com/2020/07/yet-another-froala-0-day-xss
- https://compass-security.com/fileadmin/Datein/Research/Advisories/CSNC-2020-004_DOM_XSS_in_Froala_WYSIWYG_HTML_Editor.txt
- https://froala.com/wysiwyg-editor/changelog/#3.2.3
- https://github.com/froala/wysiwyg-editor-release
- https://github.com/froala/wysiwyg-editor/compare/v3.0.5...v3.0.6
- https://snyk.io/vuln/npm:froala-editor
- http://packetstormsecurity.com/files/158300/Froala-WYSIWYG-HTML-Editor-3.1.1-Cross-Site-Scripting.html
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N- Weakness (CWE)
CWE-79- Platform
- npm
- Package
froala-editor- Disclosed
- 10.02.2022
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-h236-g5gh-vq6c - CC BY 4.0
Vulnerability history: froala-editor
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 5
- First → latest
- 10.2021 11.2024
- Without a fix
- 2
- Exploited in attacks
- 0
Severity breakdown
- Medium 5
Disclosures per year
- 2021: 2
- 2022: 1
- 2023: 1
- 2024: 1
- 2025: 0
- 2026: 0
-
DOM-based cross-site scripting in Froala Editor this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.