cve.bz

CVE-2021-21391 ckeditor: Uncontrolled Resource Consumption

6.5 mediumEPSS 1.7%Fix available

Medium (6.5) in ckeditor. EPSS 1.7% estimated probability of exploitation activity in the next 30 days. Fixed in @ckeditor/ckeditor5-engine 27.0.0.

On this page
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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
1.7% (unchanged from 1.7% a week ago; 1.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 77th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • @ckeditor/ckeditor5-engine (npm): fixed in 27.0.0
  • @ckeditor/ckeditor5-font (npm): fixed in 27.0.0
  • @ckeditor/ckeditor5-image (npm): fixed in 27.0.0
  • @ckeditor/ckeditor5-list (npm): fixed in 27.0.0
  • @ckeditor/ckeditor5-markdown-gfm (npm): fixed in 27.0.0
  • @ckeditor/ckeditor5-media-embed (npm): fixed in 27.0.0
  • @ckeditor/ckeditor5-paste-from-office (npm): fixed in 27.0.0
  • @ckeditor/ckeditor5-widget (npm): fixed in 27.0.0

Ask an AI about this CVE

Show the promptExplain CVE-2021-21391 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-21391?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-21391?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-21391 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
ckeditor:ckeditor5-enginebefore 27.0.0
ckeditor:ckeditor5-fontbefore 27.0.0
ckeditor:ckeditor5-imagebefore 27.0.0
ckeditor:ckeditor5-listbefore 27.0.0
ckeditor:ckeditor5-markdown-gfmbefore 27.0.0
ckeditor:ckeditor5-media-embedbefore 27.0.0
ckeditor:ckeditor5-paste-from-officebefore 27.0.0
ckeditor:ckeditor5-widgetbefore 27.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-3rh3-wfr4-76mjnpm@ckeditor/ckeditor5-engine<27.0.027.0.0
GHSA-3rh3-wfr4-76mjnpm@ckeditor/ckeditor5-font<27.0.027.0.0
GHSA-3rh3-wfr4-76mjnpm@ckeditor/ckeditor5-image<27.0.027.0.0
GHSA-3rh3-wfr4-76mjnpm@ckeditor/ckeditor5-list<27.0.027.0.0
GHSA-3rh3-wfr4-76mjnpm@ckeditor/ckeditor5-markdown-gfm<27.0.027.0.0
GHSA-3rh3-wfr4-76mjnpm@ckeditor/ckeditor5-media-embed<27.0.027.0.0
GHSA-3rh3-wfr4-76mjnpm@ckeditor/ckeditor5-paste-from-office<27.0.027.0.0
GHSA-3rh3-wfr4-76mjnpm@ckeditor/ckeditor5-widget<27.0.027.0.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 1 moreckeditor3no fix listedUBUNTU-CVE-2021-21391

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON