CVE-2024-43407 Code Snippet GeSHi plugin has reflected cross-site scripting (XSS) vulnerability

Medium 6.1 Published Updated

Reflected XSS in CKEditor 4 Code Snippet GeSHi plugin allows attackers to execute malicious scripts via crafted requests to the hosted GeSHi library.

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-43407?

CVE-2024-43407 is a medium-severity cross-site scripting vulnerability in ckeditor4, published on 21 Aug 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 potential vulnerability has been discovered in CKEditor 4 Code Snippet GeSHi plugin. The vulnerability allowed a reflected XSS attack by exploiting a flaw in the GeSHi syntax highlighter library hosted by the victim. The GeSHi library was included as a vendor dependency in CKEditor 4 source files. In a specific scenario, an attacker could craft a malicious script that could be executed by sending a request to the GeSHi library hosted on a PHP web server. The GeSHi library is no longer actively maintained. Due to the lack of ongoing support and updates, potential security vulnerabilities have been identified with its continued use. To mitigate these risks and enhance the overall security of the CKEditor 4, we have decided to completely remove the GeSHi library as a dependency. This change aims to maintain a secure environment and reduce the risk of any security incidents related to outdated or unsupported software. The fix is be available in version 4.25.0-lts.

Weakness: CWE-79

Which versions are affected by CVE-2024-43407?

4 open source packages ship an affected version, including ckeditor4 and ckeditor/ckeditor. It affects 1 product.

PackageAffectedFixed in
ckeditor4 npmAll versions4.25.0
ckeditor4 npmAll versions4.25.0
ckeditor/ckeditor PackagistAll versions4.25.0
ckeditor/ckeditor PackagistAll versions4.25.0

Products include Ckeditor Ckeditor.

How do I fix CVE-2024-43407?

Upgrade ckeditor4 to 4.25.0 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-43407 being exploited?

There is no known exploitation of CVE-2024-43407 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2024-43407, GHSA-7r32-vfj5-c2jv, UBUNTU-CVE-2024-43407.

Is CVE-2024-43407 in your software?

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

Check your SBOMs for free