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

Medium 6.1 Published Updated

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.

PackageAffectedFixed in
ckeditor4 npmAll versions4.24.0-lts
ckeditor4 npmAll versions4.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.

Sources

Also known as DEBIAN-CVE-2024-24816, GHSA-mw2c-vx6j-mg76, UBUNTU-CVE-2024-24816.

Is CVE-2024-24816 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free