CVE-2024-24815: CKEditor4 Cross-site Scripting vulnerability caused by incorrect CDATA detection
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.31325%
CWE
Published
2/7/2024
Updated
3/6/2024
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 |
|---|---|---|---|
| ckeditor4 | npm | < 4.24.0-lts | 4.24.0-lts |
| ckeditor/ckeditor | composer | < 4.24.0 | 4.24.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the HTML parser's CDATA processing in core/htmlparser.js. The commit diff shows critical changes to CDATA handling:- Removed conditional text accumulation in cdata array- Changed cdata.join('') to direct cdata passing- Added regex-based CDATA boundary detection. The original implementation's incremental text accumulation and improper CDATA termination checks allowed attackers to inject unescaped content between CDATA tags that would bypass ACF validation. The patch fixes this by using strict regex matching for CDATA section boundaries.