CVEfocus › CVE database › CVE-2021-21391

CVE-2021-21391Regular expression Denial of Service in multiple packages

CVSS 6.5 MediumEPSS 1.7% (higher than 77% of CVEs)Published 2021-04-29Updated 2024-08-03Assigner: GitHub_M

CKEditor 5 provides a WYSIWYG editing solution. This CVE affects the following npm packages: ckeditor5-engine, ckeditor5-font, ckeditor5-image, ckeditor5-list, ckeditor5-markdown-gfm, ckeditor5-media-embed, ckeditor5-paste-from-office, and ckeditor5-widget. Following an internal audit, a regular expression denial of service (ReDoS) vulnerability has been discovered in multiple CKEditor 5 packages. The vulnerability allowed to abuse particular regular expressions, which could cause a significant performance drop resulting in a browser tab freeze. It affects all users using the CKEditor 5 packages listed above at version <= 26.0.0. The problem has been recognized and patched. The fix will be available in version 27.0.0.

CWE-400

What to do

Fixed builds are available from npm: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

8Fixed
4Fix pending
2Under investigation
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10ckeditorNot affected
vulnerable_code_not_present
Ubuntu 24.04ckeditor3Under investigationUBUNTU-CVE-2021-21391
Ubuntu 22.04ckeditor3Under investigationUBUNTU-CVE-2021-21391
Ubuntu 20.04ckeditor3Fix pendingUBUNTU-CVE-2021-21391
Ubuntu 18.04ckeditor3Fix pendingUBUNTU-CVE-2021-21391
Ubuntu 16.04ckeditorFix pending
Ubuntu 14.04ckeditorFix pending
npm library@ckeditor/ckeditor5-engineFixed27.0.0GHSA-3rh3-wfr4-76mj
npm library@ckeditor/ckeditor5-fontFixed27.0.0GHSA-3rh3-wfr4-76mj
npm library@ckeditor/ckeditor5-imageFixed27.0.0GHSA-3rh3-wfr4-76mj
npm library@ckeditor/ckeditor5-listFixed27.0.0GHSA-3rh3-wfr4-76mj
npm library@ckeditor/ckeditor5-markdown-gfmFixed27.0.0GHSA-3rh3-wfr4-76mj
npm library@ckeditor/ckeditor5-media-embedFixed27.0.0GHSA-3rh3-wfr4-76mj
npm library@ckeditor/ckeditor5-paste-from-officeFixed27.0.0GHSA-3rh3-wfr4-76mj
npm library@ckeditor/ckeditor5-widgetFixed27.0.0GHSA-3rh3-wfr4-76mj

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.