CVE-2022-24728: CKEditor 4 cross-site scripting via HTML injection

CVE-2022-24728 · Severity: low · CVSS 3.1 · Published 2022-03-16

CKEditor 4 is a rich text editor used in web applications to allow users to create and edit formatted content. A vulnerability in its HTML sanitization logic allowed attackers to inject specially crafted HTML code that bypassed security filters and executed arbitrary JavaScript in the user's browser. This could lead to account compromise, theft of sensitive data, or session hijacking if exploited against authenticated users.

Technologies: ckeditor4 (npm), drupal/core (Packagist). Vendors: npm, Packagist.

Quick answers

Is CVE-2022-24728 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2022-24728 being exploited in the wild.
How severe is CVE-2022-24728?
Low severity, with a CVSS score of 3.1, published 16 March 2022.
Which products and versions are affected?
ckeditor4 (npm) SEMVER:introduced=0,fixed=4.18.0; drupal/core (Packagist) ECOSYSTEM:introduced=8.0.0,fixed=9.2.15|ECOSYSTEM:introduced=9.3.0,fixed=9.3.8.
Is there a fix for CVE-2022-24728?
Yes. ckeditor4 (npm): upgrade to 4.18.0 or later; drupal/core (Packagist): upgrade to 9.2.15 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2022-24728 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2022-24728?
Check whether you run ckeditor4 (npm) or drupal/core (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • ckeditor4 (npm): upgrade to 4.18.0 or later
    npm install ckeditor4@4.18.0
  • drupal/core (Packagist): upgrade to 9.2.15 or later
    composer require drupal/core:^9.2.15

Technical details

The vulnerability is a cross-site scripting (CWE-79) flaw in CKEditor 4's core HTML processing module affecting content sanitization. An attacker can inject malformed HTML that circumvents the content filtering rules, resulting in arbitrary JavaScript code execution within the editor or the edited document. The attack requires an authenticated user with access to the editor and user interaction (e.g., pasting malicious content or processing attacker-controlled HTML). The vulnerability has been patched in version 4.18.0, which introduced randomized protection keywords and improved the sanitization mechanism to prevent HTML injection bypass techniques. The fix was released on March 16, 2022.

Affected products

  • CKSource CKEditor 4 < 4.18.0

Identifiers

  • CVE-2022-24728
  • CVE-2022-24729
  • DRUPAL-CORE-2022-005
  • GHSA-4fc4-4p5g-6w89

Timeline

  • 2022-03-16: disclosed: Vulnerability publicly disclosed via GHSA-4fc4-4p5g-6w89
  • 2022-03-16: patched: Fix released in CKEditor 4.18.0

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.