{"id":"CVE-2024-24816","aliases":["CVE-2024-24816","GHSA-mw2c-vx6j-mg76"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site scripting (XSS) vulnerability in samples with enabled the preview feature","summary":"CKEditor4 is an open source what-you-see-is-what-you-get HTML editor. A cross-site scripting vulnerability vulnerability has been discovered in versions prior to 4.24.0-lts in samples that use the `preview` feature. All integrators that use these samples in the production code can be affected. The vulnerability allows an attacker to execute JavaScript code by abusing the misconfigured preview feature. It affects all users using the CKEditor 4 at version < 4.24.0-lts with affected samples used in a production environment. A fix is available in version 4.24.0-lts.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"CKEditor4 is an open source what-you-see-is-what-you-get HTML editor. A cross-site scripting vulnerability vulnerability has been discovered in versions prior to 4.24.0-lts in samples that use the `preview` feature. All integrators that use these samples in the production code can be affected. The vulnerability allows an attacker to execute JavaScript code by abusing the misconfigured preview feature. It affects all users using the CKEditor 4 at version < 4.24.0-lts with affected samples used in a production environment. A fix is available in version 4.24.0-lts.","source":"cvelist"},{"lang":"en","text":"### Affected packages\nThe vulnerability has been discovered in the samples that use the [preview](https://ckeditor.com/cke4/addon/preview) feature:\n\n* `samples/old/**/*.html`\n* `plugins/[plugin name]/samples/**/*.html`\n\nAll integrators that use these samples in the production code can be affected.\n\n### Impact\n\nA potential vulnerability has been discovered in one of CKEditor's 4 samples that are shipped with production code. The vulnerability allowed to execute JavaScript code by abusing the misconfigured [preview feature](https://ckeditor.com/cke4/addon/preview). It affects all users using the CKEditor 4 at version < 4.24.0-lts with affected samples used in a production environment.\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 [Marcin Wyczechowski](https://www.linkedin.com/in/marcin-wyczechowski-0a823795/) & [Michał Majchrowicz](https://www.linkedin.com/in/micha%C5%82-majchrowicz-mwsc/) [AFINE Team](https://afine.com/) for recognizing and reporting this vulnerability.","format":"markdown","source":"ghsa"},{"lang":"es","text":"CKEditor4 es un editor HTML de código abierto de lo que ves es lo que obtienes. Se descubrió una vulnerabilidad de cross-site scripting en versiones anteriores a la 4.24.0-lts en muestras que utilizan la función \"vista previa\". Todos los integradores que utilicen estos ejemplos en el código de producción pueden verse afectados. La vulnerabilidad permite a un atacante ejecutar código JavaScript abusando de la función de vista previa mal configurada. Afecta a todos los usuarios que utilizan CKEditor 4 en la versión &lt;4.24.0-lts con muestras afectadas utilizadas en un entorno de producción. Hay una solución disponible en la versión 4.24.0-lts.","source":"nvd"}],"published":"2024-02-07T16:58:24.564Z","modified":"2026-09-10T03:50:06.370Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 4.24.0-lts","status":"affected"}],"vendor":"ckeditor","product":"ckeditor4","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.24.0-lts"}],"ecosystem":"npm","package":"ckeditor4","purl":"pkg:npm/ckeditor4","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.0","fixed":"4.24.0"}],"vendor":"ckeditor","product":"ckeditor","cpe":"cpe:2.3:a:ckeditor:ckeditor:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ckeditor/ckeditor4/security/advisories/GHSA-mw2c-vx6j-mg76","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ckeditor/ckeditor4/commit/8ed1a3c93d0ae5f49f4ecff5738ab8a2972194cb","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://ckeditor.com/cke4/addon/preview","tags":["product","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24816","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ckeditor/ckeditor4","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-02-21T20:41:03.498Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-24816","url":"https://www.cve.org/CVERecord?id=CVE-2024-24816","licence":"CVE Terms of Use","modified":"2024-08-01T23:28:12.611Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mw2c-vx6j-mg76","url":"https://github.com/advisories/GHSA-mw2c-vx6j-mg76","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:06.370Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-24816","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24816","licence":"Public domain","modified":"2026-06-17T07:14:56.680Z"}],"updatedAt":"2026-11-25T22:58:36.653Z","epss":{"score":0.01652,"percentile":0.7725,"date":"2026-12-01T12:00:22.000Z"}}