CVE-2022-24728: Drupal Core Vulnerability in CKEditor Leading to XSS Exploits

drupal/core Updated 11 Dec 2025

Summary

16/03/2022
Yes i
Unrated
Not published

CVE-2022-24728: The Drupal project uses the CKEditor library for WYSIWYG editing. Affects drupal/core 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

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

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 widely-used open-source content management system (CMS) that enables users to create and manage websites easily. It incorporates various libraries for enhanced functionality, including CKEditor, a rich text editor that allows users to format content visually. However, vulnerabilities in CKEditor can pose significant risks to Drupal sites, especially when configured to allow WYSIWYG editing.

Vulnerability Detail

The vulnerability arises from the CKEditor library used in Drupal, which has been identified to have multiple Cross-Site Scripting (XSS) vulnerabilities. These vulnerabilities can be exploited by attackers who can create or edit content, potentially allowing them to execute malicious JavaScript code in the context of users accessing the WYSIWYG editor, including site administrators. The specific vulnerabilities are detailed in CVE-2022-24728 and CVE-2022-24729, which highlight issues related to HTML processing and Denial of Service in the dialog plugin.

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
    composer require drupal/core:9.2.15
  • >= 9.3.0, < 9.3.8 9.3.8
    composer require drupal/core: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 →

Workaround

If immediate updating is not feasible, consider disabling the CKEditor functionality for users who do not require it, or restrict access to content editing capabilities to trusted users only.

Conclusion

In summary, the vulnerabilities identified in CKEditor used by Drupal pose significant risks, particularly through XSS attacks. It is essential to update to the latest patched versions to safeguard your site. Additionally, utilizing tools like Vulert can help monitor for such vulnerabilities effectively.

See every vulnerability recorded for drupal/core →

Share this vulnerability

FAQ

The vulnerabilities include Cross-Site Scripting (XSS) issues that can allow attackers to execute arbitrary JavaScript code.

You can check your application for vulnerabilities using Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to use the Vulert playground without signup.

Failure to address this vulnerability may lead to unauthorized access, data breaches, or site defacement, particularly affecting users with administrative privileges.

Yes, you can restrict access to CKEditor or disable it for users who do not need it as a temporary measure.

Detailed information can be found in the security advisories for CKEditor, specifically CVE-2022-24728 and CVE-2022-24729.

Related vulnerabilities

Recent vulnerabilities recorded for drupal/core.

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
    composer require drupal/core:9.2.15
  • >= 9.3.0, < 9.3.8 9.3.8
    composer require drupal/core: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