# CVE-2024-24816: Cross-site scripting (XSS) vulnerability in samples with enabled the preview feature

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.65%, higher than 77% of CVEs (2026-12-01)
- Published: 2024-02-07T16:58:24.564Z
- Modified: 2026-09-10T03:50:06.370Z
- Also known as: GHSA-mw2c-vx6j-mg76
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- ckeditor ckeditor4: < 4.24.0-lts
- ckeditor4 (npm): before 4.24.0-lts
- ckeditor ckeditor: from 4.0 before 4.24.0

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/ckeditor/ckeditor4/security/advisories/GHSA-mw2c-vx6j-mg76> (vendor-advisory, web)
- <https://github.com/ckeditor/ckeditor4/commit/8ed1a3c93d0ae5f49f4ecff5738ab8a2972194cb> (patch, web)
- <https://ckeditor.com/cke4/addon/preview> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-24816> (advisory)
- <https://github.com/ckeditor/ckeditor4> (package)

## Sources

- CVE List: [CVE-2024-24816](https://www.cve.org/CVERecord?id=CVE-2024-24816), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-mw2c-vx6j-mg76](https://github.com/advisories/GHSA-mw2c-vx6j-mg76), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-24816](https://nvd.nist.gov/vuln/detail/CVE-2024-24816), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-24816 · Whole record: https://cve.day/CVE-2024-24816.json · Rebuilt by cve.day 2026-11-25T22:58:36.653Z
