CVE-2021-32808: CKEditor Widget feature cross-site scripting via undo functionality

CVE-2021-32808 · Severity: low · CVSS 3.1 · Published 2021-08-23

CKEditor is a rich-text editor used in many web applications to allow users to create and edit formatted content. A vulnerability in the Widget plugin's undo feature allows an attacker to inject and execute malicious JavaScript code by submitting specially crafted HTML. This could enable attackers to steal user sessions, deface content, or harvest sensitive information from users interacting with the editor.

Technologies: ckeditor4 (npm). Vendors: npm.

Quick answers

Is CVE-2021-32808 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2021-32808 being exploited in the wild.
How severe is CVE-2021-32808?
Low severity, with a CVSS score of 3.1, published 23 August 2021.
Which products and versions are affected?
ckeditor4 (npm) SEMVER:introduced=4.13.0,fixed=4.16.2.
Is there a fix for CVE-2021-32808?
Yes. ckeditor4 (npm): upgrade to 4.16.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2021-32808 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2021-32808?
Check whether you run ckeditor4 (npm) 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.16.2 or later
    npm install ckeditor4@4.16.2

Technical details

The vulnerability is a cross-site scripting (CWE-79) flaw in the CKEditor 4 Widget plugin when used with the Undo feature. The root cause involves improper handling of malformed widget HTML during undo operations, allowing JavaScript code execution. The attack requires user interaction (users must undo an action containing malicious widget HTML) and network access to a CKEditor instance. An attacker can achieve arbitrary JavaScript execution in the context of the web page, leading to session hijacking, data theft, or defacement. The vulnerability affects CKEditor 4 versions 4.13.0 through 4.16.1, with a fix released in version 4.16.2.

Affected products

  • CKSource CKEditor 4 4.13.0 to 4.16.1

Identifiers

  • CVE-2021-32808
  • GHSA-6226-h7ff-ch6c

Timeline

  • 2021-08-12: disclosed: Vulnerability disclosed via GitHub Security Advisory
  • 2021-08-23: advisory: GHSA-6226-h7ff-ch6c published
  • 2021-08-13: patched: Fixed in CKEditor 4.16.2

References

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