Cloudanix VulnDB

CVE-2021-41164

High · 8.2

CVSS

8.2

EPSS

1.3%

Published

Nov 17, 2021

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A flaw in the rich text editor could let attackers run harmful code in users' browsers when they view certain content.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Remote Code Execution
Component
Library
Class
XSS
Remediation
Upgrade
Effort
Low
Patch risk
Low

What it actually does

The vulnerability permits execution of arbitrary JavaScript code in the context of the affected CKEditor instance by bypassing input sanitization mechanisms.

Why it matters to the business

Attackers can hijack user sessions, steal sensitive data, or perform unauthorized actions on behalf of users interacting with the editor, potentially leading to data breaches or account compromises in applications using the library.

How an attack unfolds

An attacker crafts a malicious payload that exploits insufficient sanitization in CKEditor, injects it into content processed by the editor, and when a victim views or edits the content, the script executes in their browser.

How to fix it

Update ckeditor4 to the fixed commit cab78d432999c8bcd8213a2e0786026a5f9a44dc or later, and ckeditor-releases to 5a0d3c84b4bc9eb7d1ecd8dfa9b660eb691553c2 or later.

How to confirm the fix worked

Verify the installed version of CKEditor4 is after the specified commit hashes by checking the source files or package version.

Typical attack path

  1. Identify an application using vulnerable CKEditor version
  2. Craft and submit malicious HTML/JS payload through editor input
  3. Payload bypasses sanitization and is stored or rendered
  4. Victim loads the page containing the payload
  5. Malicious script executes in victim's browser session

How to detect it

Review application logs for unexpected script injections or unusual activity related to editor inputs; check for known malicious payloads in stored content.

What your security team should do

  • Prioritize updating CKEditor to the patched versions immediately
  • Audit applications for use of vulnerable CKEditor instances
  • Implement content security policies as additional mitigation
  • Monitor for unusual script execution in editor contexts

The record

CKEditor4 is an open source WYSIWYG HTML editor. In affected versions a vulnerability has been discovered in the Advanced Content Filter (ACF) module and may affect all plugins used by CKEditor 4. The vulnerability allowed to inject malformed HTML bypassing content sanitization, which could result in executing JavaScript code. It affects all users using the CKEditor 4 at version < 4.17.0. The problem has been recognized and patched. The fix will be available in version 4.17.0.

Affected packages

Ecosystem Package Introduced Fixed
npm ckeditor4 0 4.17.0
npm ckeditor4 4.0 4.17.0
Bitnami drupal 8.9.0 8.9.20
Bitnami drush 8.9.0 8.9.20
Debian:11 ckeditor 0 No fix
Debian:12 ckeditor 0 4.19.0+dfsg-1
Debian:13 ckeditor 0 4.19.0+dfsg-1
Ubuntu:16.04:LTS ldap-account-manager 0 No fix
Ubuntu:16.04:LTS request-tracker4 0 No fix
Ubuntu:18.04:LTS ckeditor3 0 No fix
Ubuntu:18.04:LTS ldap-account-manager 0 No fix
Ubuntu:20.04:LTS ckeditor 0 No fix
Ubuntu:20.04:LTS ckeditor3 0 No fix
Ubuntu:20.04:LTS ldap-account-manager 0 No fix
Ubuntu:20.04:LTS request-tracker4 0 No fix
Ubuntu:22.04:LTS ckeditor 0 No fix
Ubuntu:22.04:LTS ckeditor3 0 No fix
Ubuntu:22.04:LTS ldap-account-manager 0 No fix
Ubuntu:22.04:LTS request-tracker4 0 No fix
Ubuntu:24.04:LTS ckeditor3 0 No fix
Ubuntu:24.04:LTS ldap-account-manager 0 No fix
Ubuntu:24.04:LTS request-tracker4 0 No fix
Ubuntu:24.10 ckeditor3 0 No fix
Ubuntu:24.10 ldap-account-manager 0 No fix
Ubuntu:24.10 request-tracker4 0 No fix
Ubuntu:25.04 ckeditor3 0 No fix
Ubuntu:25.04 ldap-account-manager 0 No fix
Ubuntu:25.04 request-tracker4 0 No fix
Ubuntu:25.10 ldap-account-manager 0 No fix
Ubuntu:25.10 request-tracker4 0 No fix
Ubuntu:Pro:16.04:LTS ckeditor 0 No fix
Ubuntu:Pro:16.04:LTS ldap-account-manager 0 No fix
Ubuntu:Pro:16.04:LTS request-tracker4 0 No fix
Ubuntu:Pro:18.04:LTS ckeditor 0 No fix
Ubuntu:Pro:18.04:LTS ckeditor3 0 No fix
Ubuntu:Pro:18.04:LTS ldap-account-manager 0 No fix
Ubuntu:Pro:18.04:LTS request-tracker4 0 No fix
Ubuntu:Pro:20.04:LTS ckeditor 0 No fix
Ubuntu:Pro:20.04:LTS ckeditor3 0 No fix
Ubuntu:Pro:20.04:LTS ldap-account-manager 0 No fix
Ubuntu:Pro:20.04:LTS request-tracker4 0 No fix
Ubuntu:Pro:22.04:LTS ckeditor 0 No fix

Related vulnerabilities