CVE-2022-24728: Cross-site Scripting in CKEditor4

ckeditor4 Updated 02 Oct 2025

Summary

16/03/2022
Yes i
Moderate
5.4

CVE-2022-24728: Cross-site Scripting in CKEditor4. Affects ckeditor4 versions < 4.18.0. Fixed in 4.18.0. How to fix ↓

Also tracked for

The same CVE-2022-24728 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

CKEditor 4 is a widely used HTML text editor that provides a rich set of features for creating and editing content. It is commonly integrated into web applications to enable users to input and format text. However, a vulnerability has been discovered in the core HTML processing module of CKEditor 4, which may affect all plugins used by the editor. This vulnerability allows for the injection of malformed HTML, bypassing content sanitization and potentially leading to the execution of malicious JavaScript code. The vulnerability impacts CKEditor 4 versions prior to 4.18.0.

Vulnerability Detail

The CKEditor 4 vulnerability arises from a flaw in the HTML processing core module. Attackers can exploit this vulnerability by injecting specially crafted HTML code that evades content sanitization mechanisms. This can result in the execution of arbitrary JavaScript code within the context of the affected user's browser, potentially leading to various attacks such as session hijacking, defacement, or theft of sensitive information. The vulnerability has a CVSS score of 5.4, indicating a moderate severity level.

How To Fix

Latest published version: 4.25.2 as of 22 Oct 2026

npm install ckeditor4@4.25.2

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.18.0

This is the first release that contains the fix.

npm install ckeditor4@4.18.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can implement additional input validation and sanitization measures on the server-side to mitigate the risk of XSS attacks. This can involve using security libraries or frameworks that provide robust input filtering and output encoding capabilities. However, applying the official patch by upgrading to CKEditor 4 version 4.18.0 is the recommended long-term solution.

Conclusion

The CKEditor 4 vulnerability (CVE-2022-24728) exposes web applications to the risk of cross-site scripting (XSS) attacks. It is crucial for users of CKEditor 4 to promptly update to version 4.18.0 or later to mitigate this vulnerability. Implementing additional server-side input validation and sanitization measures can serve as a temporary workaround. For further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for ckeditor4 →

Share this vulnerability

FAQ

CKEditor 4 is a popular HTML text editor used in web applications for content creation and editing.

The vulnerability allows for the injection of malicious JavaScript code, potentially leading to various attacks such as session hijacking, defacement, or theft of sensitive information.

All CKEditor 4 versions prior to 4.18.0 are affected by this vulnerability.

To fix this vulnerability, upgrade CKEditor 4 to version 4.18.0 or later.

As a temporary workaround, implement additional input validation and sanitization measures on the server-side.

Related vulnerabilities

Recent vulnerabilities recorded for ckeditor4.

How To Fix

Latest published version: 4.25.2 as of 22 Oct 2026

npm install ckeditor4@4.25.2

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.18.0

This is the first release that contains the fix.

npm install ckeditor4@4.18.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback