CVE-2022-24728: Drupal - CKEditor4 HTML Injection Vulnerability

drupal Updated 02 Oct 2025

Summary

06/03/2024
Yes i
Medium
Not published

CVE-2022-24728: Cross-site Scripting in CKEditor4. Affects drupal across 2 version ranges.

>= 8.0.0, < 9.2.15 >= 9.3.0, < 9.3.8

Fixed in 9.2.15 or 9.3.8, depending on the release line you run. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Drupal is a popular open-source content management system (CMS) used for building websites and applications. CKEditor4 is an open-source HTML editor integrated into Drupal for providing a what-you-see-is-what-you-get (WYSIWYG) editing experience. It allows users to create and edit HTML content easily. However, a vulnerability has been discovered in the core HTML processing module of CKEditor4, affecting all plugins used by CKEditor4 versions prior to 4.18.0.

Vulnerability Detail

The vulnerability in CKEditor4 allows an attacker to inject malformed HTML code, bypassing content sanitization mechanisms. This can lead to the execution of arbitrary JavaScript code, posing a significant security risk. The issue has been addressed in CKEditor4 version 4.18.0.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 8.0.0, < 9.2.15 9.2.15
  • >= 9.3.0, < 9.3.8 9.3.8

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Conclusion

The CKEditor4 HTML Injection Vulnerability in Drupal poses a significant security risk as it allows for the execution of arbitrary JavaScript code. It is crucial to upgrade CKEditor4 to version 4.18.0 or later to mitigate this vulnerability. Keeping Drupal and its plugins up to date is also recommended. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for drupal →

Share this vulnerability

FAQ

CKEditor4 is an open-source HTML editor used in Drupal for WYSIWYG editing.

The vulnerability allows an attacker to inject malicious HTML code, potentially leading to the execution of arbitrary JavaScript code.

All versions of CKEditor4 prior to 4.18.0 are affected by this vulnerability.

Yes, the vulnerability has been patched in CKEditor4 version 4.18.0.

There are currently no known workarounds for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for drupal.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 8.0.0, < 9.2.15 9.2.15
  • >= 9.3.0, < 9.3.8 9.3.8

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. 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