Executive brief
Froala WYSIWYG Editor is a popular rich text editor used to create and format web content. A cross-site scripting vulnerability in the "Insert Video" feature allows attackers to inject malicious scripts through specially crafted embedded code, which are then executed in the browser of users viewing the content. This could lead to session hijacking, account takeover, or theft of sensitive information from users of affected websites.
Technical details
A cross-site scripting (CWE-79) vulnerability exists in the Insert Video function of Froala WYSIWYG Editor, specifically when processing embedded video code. The vulnerability allows unauthenticated attackers to inject arbitrary HTML and JavaScript via the "Embedded Code" option by bypassing input sanitization, enabling execution of malicious scripts in the context of users' browsers. The attack vector is network-based and requires user interaction (inserting a video with malicious code), but user interaction is typically part of normal editor operation. Attackers can achieve arbitrary script execution with the scope expanded to affect other users who view content containing the payload. Patches are available in version 4.0.11 and later.
Affected products
- Froala froala-editor <= 4.0.6
Timeline
- 2020-04-16: disclosed: Vulnerability reported on GitHub issue #3880
- 2021-10-28: patched: Advisory published; fix available in version 4.0.11
- 2021-10-28: advisory