{"id":"GHSA-fq6h-4g8v-qqvm","summary":"CKEditor4 Cross-site Scripting vulnerability caused by incorrect CDATA detection","details":"### Affected packages\nThe vulnerability has been discovered in the core HTML parsing module and may affect all editor instances that:\n* Enabled [full-page editing](https://ckeditor.com/docs/ckeditor4/latest/features/fullpage.html) mode,\n* or enabled [CDATA](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_dtd.html#property-S-cdata) elements in [Advanced Content Filtering](https://ckeditor.com/docs/ckeditor4/latest/guide/dev_advanced_content_filter.html) configuration (defaults to `script` and `style` elements).\n\n### Impact\n\nA potential vulnerability has been discovered in CKEditor 4 HTML processing core module. The vulnerability allowed to inject malformed HTML content bypassing Advanced Content Filtering mechanism, which could result in executing JavaScript code. An attacker could abuse faulty CDATA content detection and use it to prepare an intentional attack on the editor. It affects all users using the CKEditor 4 at version \u003c 4.24.0-lts.\n\n### Patches\nThe problem has been recognized and patched. The fix will be available in version 4.24.0-lts.\n\n### For more information\nEmail us at [security@cksource.com](mailto:security@cksource.com) if you have any questions or comments about this advisory.\n\n### Acknowledgements\nThe CKEditor 4 team would like to thank [Michal Frýba](https://cz.linkedin.com/in/michal-fryba) from [ALEF NULA](https://www.alefnula.com/) for recognizing and reporting this vulnerability.","aliases":["CVE-2024-24815"],"modified":"2026-09-10T03:50:06.171222645Z","published":"2024-02-07T17:30:37Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2024-02-07T17:30:37Z","nvd_published_at":"2024-02-07T16:15:47Z","cwe_ids":["CWE-79"]},"references":[{"type":"WEB","url":"https://github.com/ckeditor/ckeditor4/security/advisories/GHSA-fq6h-4g8v-qqvm"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24815"},{"type":"WEB","url":"https://github.com/ckeditor/ckeditor4/commit/8ed1a3c93d0ae5f49f4ecff5738ab8a2972194cb"},{"type":"WEB","url":"https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_dtd.html#property-S-cdata"},{"type":"WEB","url":"https://ckeditor.com/docs/ckeditor4/latest/features/fullpage.html"},{"type":"WEB","url":"https://ckeditor.com/docs/ckeditor4/latest/guide/dev_advanced_content_filter.html"},{"type":"PACKAGE","url":"https://github.com/ckeditor/ckeditor4"},{"type":"WEB","url":"https://www.drupal.org/sa-contrib-2024-009"}],"affected":[{"package":{"name":"ckeditor4","ecosystem":"npm","purl":"pkg:npm/ckeditor4"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.24.0-lts"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-fq6h-4g8v-qqvm/GHSA-fq6h-4g8v-qqvm.json"}},{"package":{"name":"ckeditor/ckeditor","ecosystem":"Packagist","purl":"pkg:composer/ckeditor/ckeditor"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.24.0"}]}],"versions":["4.10.0","4.10.1","4.11.0","4.11.1","4.11.2","4.11.3","4.11.4","4.12.0","4.12.1","4.13.0","4.13.1","4.14.0","4.14.1","4.15.0","4.15.1","4.16.0","4.16.1","4.16.2","4.17.0","4.17.1","4.17.2","4.18.0","4.19.0","4.19.1","4.20.0","4.20.1","4.20.2","4.21.0","4.22.0","4.22.1","4.23.0","4.3.3","4.3.4","4.3.5","4.4.0","4.4.1","4.4.2","4.4.3","4.4.4","4.4.5","4.4.6","4.4.7","4.4.8","4.5.0","4.5.1","4.5.10","4.5.11","4.5.2","4.5.3","4.5.4","4.5.5","4.5.6","4.5.7","4.5.8","4.5.9","4.6.0","4.6.1","4.6.2","4.7.0","4.7.1","4.7.2","4.7.3","4.8.0","4.9.0","4.9.1","4.9.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-fq6h-4g8v-qqvm/GHSA-fq6h-4g8v-qqvm.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}