CVE-2024-24816 Cross-site scripting (XSS) vulnerability in samples with enabled the preview feature
An attacker can execute JavaScript via XSS in CKEditor 4 samples using the preview feature, affecting integrators who deploy these samples in production.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-24816?
CVE-2024-24816 is a medium-severity cross-site scripting vulnerability in ckeditor4, published on 7 Feb 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2024-24816?
2 open source packages ship an affected version, including ckeditor4. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ckeditor4 npm | All versions | 4.24.0-lts |
ckeditor4 npm | All versions | 4.24.0-lts |
Products include Ckeditor Ckeditor.
How do I fix CVE-2024-24816?
Upgrade ckeditor4 to 4.24.0-lts or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-24816 being exploited?
There is no known exploitation of CVE-2024-24816 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in ckeditor4
- CVE-2023-31541 File upload in n/a
- CVE-2021-41164 Advanced Content Filter (ACF) vulnerability allowing to execute JavaScript code using malformed HTML
- CVE-2021-41165 HTML comments vulnerability allowing to execute JavaScript code
- CVE-2021-32808 Cross-site scripting in ckeditor via abuse of undo functionality
- CVE-2011-4972 Missing authorization in CKEditor Drupal module
Sources
Also known as DEBIAN-CVE-2024-24816, GHSA-mw2c-vx6j-mg76, UBUNTU-CVE-2024-24816.