CVE-2020-22864:
Cross site scripting in froala-editor
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.57339%
CWE
Published
10/28/2021
Updated
2/13/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
froala-editor | npm | <= 4.0.6 | 4.0.11 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability manifests in the video insertion functionality where user-controlled embedded code is processed. The GitHub fix (418sec/wysiwyg-editor#1) shows the vulnerability was in line 188 of video.min.js
where input sanitization was missing for dangerous URI schemes. The patch added .replace()
calls to remove 'data:' and 'javascript:' prefixes, confirming the vulnerable code path handled unsanitized embed code insertion. The CVE description and reproduction steps specifically implicate the video embedding feature's input handling as the vulnerable component.