CVE-2023-4771: CKEditor Cross-site Scripting vulnerability

ckeditor4 Updated 02 Oct 2025

Summary

16/11/2023
MODERATE
No i
Moderate
6.1

GHSA-hxjc-9j8v-v9pr: Duplicate Advisory: CKEditor Cross-site Scripting vulnerability. Affects ckeditor4 versions < 4.15.1. No fix is published. How to fix ↓

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 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 is a popular open-source rich text editor used for web content creation. It provides a user-friendly interface for creating and editing HTML content. The vulnerability affects CKEditor versions 4.15.1 and earlier. CKEditor allows users to input and manipulate HTML content, making it susceptible to cross-site scripting (XSS) attacks.

Vulnerability Detail

The CKEditor vulnerability allows an attacker to inject malicious JavaScript code through the 'ckeditor/samples/old/ajax.html' file. This file is used for AJAX functionality and can be accessed by authenticated users. By exploiting this vulnerability, an attacker can execute arbitrary code in the context of the user's browser, potentially leading to unauthorized access, data theft, or other malicious activities.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, developers can disable or restrict access to the 'ajax.html' file in the CKEditor installation. This can be done by modifying the server configuration or using access control mechanisms to block access to the vulnerable file. However, applying the official fix by upgrading to the latest version is strongly recommended.

Conclusion

The CKEditor XSS vulnerability (CVE-2023-4771) allows attackers to inject malicious JavaScript code and potentially execute arbitrary code in the user's browser. To mitigate this vulnerability, it is crucial to upgrade CKEditor to version 4.15.2 or later and secure the 'ajax.html' file. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for ckeditor4 →

Share this vulnerability

FAQ

CKEditor is an open-source rich text editor used for web content creation. It provides a user-friendly interface for editing HTML content.

Cross-site scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. This can lead to unauthorized access, data theft, or other malicious activities.

The CKEditor XSS vulnerability allows an attacker to inject malicious JavaScript code through the 'ajax.html' file. This file is used for AJAX functionality and can be accessed by authenticated users.

By exploiting this vulnerability, an attacker can execute arbitrary code in the context of the user's browser. This can lead to unauthorized access, data theft, or other malicious activities.

To fix this vulnerability, it is recommended to upgrade CKEditor to version 4.15.2 or later. Additionally, developers should ensure that the vulnerable 'ajax.html' file is removed or properly secured.

Related vulnerabilities

Recent vulnerabilities recorded for ckeditor4.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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