CVE-2021-21391 in Ckeditor5-Engine and 7 more products
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...
Affects 8 products from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Ckeditor | Ckeditor5-Engine | < 27.0.0 |
| Ckeditor | Ckeditor5-Font | < 27.0.0 |
| Ckeditor | Ckeditor5-Image | < 27.0.0 |
| Ckeditor | Ckeditor5-List | < 27.0.0 |
| Ckeditor | Ckeditor5-Markdown-Gfm | < 27.0.0 |
| Ckeditor | Ckeditor5-Media-Embed | < 27.0.0 |
| Ckeditor | Ckeditor5-Paste-From-Office | < 27.0.0 |
| Ckeditor | Ckeditor5-Widget | < 27.0.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-21391 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-079280-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| Published | 2021-04-29 |
| Last modified | 2024-11-21 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-400: Uncontrolled Resource Consumption (DoS)
Software does not properly limit resource usage, allowing an attacker to exhaust CPU, memory, disk, or bandwidth.
Related attack patterns (CAPEC)
CAPEC-147 XML Ping of the Death via CWE-400
CAPEC-492 Regular Expression Exponential Blowup via CWE-400
CAPEC-227 Sustained Client Engagement via CWE-400
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A regular expression denial of service (ReDoS) vulnerability has been identified in multiple CKEditor 5 npm packages, which could lead to performance degradation or denial of service if exploited.
An attacker could craft a specially designed input that causes the regular expression engine to consume excessive CPU and memory resources, leading to a denial of service condition.
Questions
What is CVE-2021-21391?
A regular expression denial of service (ReDoS) vulnerability has been identified in multiple CKEditor 5 npm packages, which could lead to performance degradation or denial of service if exploited.
What is the CVSS score for CVE-2021-21391?
CVE-2021-21391 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H. EPSS: 1.7%.
Is CVE-2021-21391 actively exploited?
No confirmed active exploitation of CVE-2021-21391 as of 2026-05-30.
How do I remediate CVE-2021-21391?
Priority: MEDIUM.
What systems are affected by CVE-2021-21391?
CVE-2021-21391 affects Ckeditor Ckeditor5-Engine, Ckeditor5-Font, Ckeditor5-Image, Ckeditor5-List, Ckeditor5-Markdown-Gfm, Ckeditor5-Media-Embed, Ckeditor5-Paste-From-Office, Ckeditor5-Widget.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Ckeditor","product":"Ckeditor5-Engine","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-11-21.