CVE-2024-43407: Code Snippet GeSHi plugin in CKEditor 4 has reflected cross-site scripting (XSS) vulnerability
Affected packages The vulnerability has been discovered in Code Snippet GeSHi plugin. All integrators that use GeSHi syntax highlighter on the backend side can be affected. Impact 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.
Published Aug 21, 2024 · Updated Feb 18, 2025
Affected packages
ckeditor4
- Ecosystem
- npm
- Affected
- < 4.25.0
- Fixed in
- 4.25.0
- Check
npm ls ckeditor4
ckeditor/ckeditor
- Ecosystem
- Composer (PHP)
- Affected
- < 4.25.0
- Fixed in
- 4.25.0
- Check
composer show ckeditor/ckeditor
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Affected packages
The vulnerability has been discovered in Code Snippet GeSHi plugin. All integrators that use GeSHi syntax highlighter on the backend side can be affected.
Impact
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.
Patches
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.
To integrators who still want to use the GeSHi syntax highlighter, we recommend manually adding the GeSHi library . Please be aware of and understand the potential security vulnerabilities associated with its use.
The fix is be available in version 4.25.0-lts.
Acknowledgements
The CKEditor 4 team would like to thank Jiasheng He from Qihoo 360 for recognizing and reporting this vulnerability.
For more information
Email us at [[email protected]](mailto:[email protected]) if you have any questions or comments about this advisory.
Credited to Rudloff.
References
- https://github.com/ckeditor/ckeditor4/security/advisories/GHSA-7r32-vfj5-c2jv
- https://nvd.nist.gov/vuln/detail/CVE-2024-43407
- https://github.com/ckeditor/ckeditor4/commit/71072c9f7f263329841bd38e7e5309074c82ef94
- https://github.com/ckeditor/ckeditor4/commit/951e7d75fcbcaa2590b0719fb0bb0dd0539ca6fa
- https://github.com/advisories/GHSA-7r32-vfj5-c2jv
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2024-43411
CKEditor4 low-risk cross-site scripting (XSS) vulnerability linked to potential domain takeover
medium3.1Aug 21, 2024CVE-2023-4771
CKEditor cross-site scripting vulnerability in AJAX sample
medium6.1Feb 7, 2024CVE-2024-24815
CKEditor4 Cross-site Scripting vulnerability caused by incorrect CDATA detection
medium6.1Feb 7, 2024CVE-2024-24816
CKEditor4 Cross-site Scripting vulnerability in samples with enabled the preview feature
medium6.1Feb 7, 2024
