Home / ckeditor / ckeditor5 / CVE-2021-21391
CVE-2021-21391: is it exploited, and which versions of ckeditor5 are affected and fixed?
CVE-2021-21391 is a denial of service (uncontrolled resource consumption) vulnerability in ckeditor5. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: @ckeditor/ckeditor5-engine before 27.0.0, @ckeditor/ckeditor5-font before 27.0.0, @ckeditor/ckeditor5-image before 27.0.0 and 5 more (GitHub advisory GHSA-3rh3-wfr4-76mj). Fixed in 27.0.0 (GitHub advisory GHSA-3rh3-wfr4-76mj). Severity: Medium (6.5, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:58 UTC.
What is CVE-2021-21391?
Regular expression Denial of Service in multiple packages
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.
From the CVE record by GitHub_M, last updated August 3, 2024, 18:09 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| ckeditor | ckeditor5 | < 27.0.0 |
As the CVE record by GitHub_M states it, last updated August 3, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | @ckeditor/ckeditor5-engine | < 27.0.0 | 27.0.0 | GHSA-3rh3-wfr4-76mj |
| npm | @ckeditor/ckeditor5-font | < 27.0.0 | 27.0.0 | GHSA-3rh3-wfr4-76mj |
| npm | @ckeditor/ckeditor5-image | < 27.0.0 | 27.0.0 | GHSA-3rh3-wfr4-76mj |
| npm | @ckeditor/ckeditor5-list | < 27.0.0 | 27.0.0 | GHSA-3rh3-wfr4-76mj |
| npm | @ckeditor/ckeditor5-markdown-gfm | < 27.0.0 | 27.0.0 | GHSA-3rh3-wfr4-76mj |
| npm | @ckeditor/ckeditor5-media-embed | < 27.0.0 | 27.0.0 | GHSA-3rh3-wfr4-76mj |
| npm | @ckeditor/ckeditor5-paste-from-office | < 27.0.0 | 27.0.0 | GHSA-3rh3-wfr4-76mj |
| npm | @ckeditor/ckeditor5-widget | < 27.0.0 | 27.0.0 | GHSA-3rh3-wfr4-76mj |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated April 30, 2021. Summary: Regular expression Denial of Service in multiple packages.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| ckeditor | ckeditor5-engine | before 27.0.0 | application |
| ckeditor | ckeditor5-font | before 27.0.0 | application |
| ckeditor | ckeditor5-image | before 27.0.0 | application |
| ckeditor | ckeditor5-list | before 27.0.0 | application |
| ckeditor | ckeditor5-markdown-gfm | before 27.0.0 | application |
| ckeditor | ckeditor5-media-embed | before 27.0.0 | application |
| ckeditor | ckeditor5-paste-from-office | before 27.0.0 | application |
| ckeditor | ckeditor5-widget | before 27.0.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 03:35 UTC.
How severe is CVE-2021-21391?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | GitHub_M |
| Medium 6.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | NVD |
| Medium 4.3 | CVSS 2.0 | AV:N/AC:M/Au:N/C:N/I:N/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-21391 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 1.67% probability of exploitation activity in the next 30 days, percentile 77.5 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-400 Uncontrolled Resource Consumption
Where are the vendor advisories and references?
- https://www.npmjs.com/package/%40ckeditor/ckeditor5-markdown-gfm x_refsource_MISC
- https://github.com/ckeditor/ckeditor5/security/advisories/GHSA-3rh3-wfr4-76mj x_refsource_CONFIRM
- https://www.npmjs.com/package/%40ckeditor/ckeditor5-engine x_refsource_MISC
- https://www.npmjs.com/package/%40ckeditor/ckeditor5-font x_refsource_MISC
- https://www.npmjs.com/package/%40ckeditor/ckeditor5-image x_refsource_MISC
- https://www.npmjs.com/package/%40ckeditor/ckeditor5-list x_refsource_MISC
- https://www.npmjs.com/package/%40ckeditor/ckeditor5-media-embed x_refsource_MISC
- https://www.npmjs.com/package/%40ckeditor/ckeditor5-paste-from-office x_refsource_MISC
- https://www.npmjs.com/package/%40ckeditor/ckeditor5-widget x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- December 22, 2020
- Published
- April 29, 2021, 00:20 UTC
- CVE record updated
- August 3, 2024, 18:09 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 03:35 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:58 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect ckeditor5?
- Oct 27, 2026CVE-2026-116688 ckeditor5: cross-site scripting (XSS)
- Oct 27, 2026CVE-2026-116687 ckeditor5: cross-site scripting (XSS)
- Mar 5, 2026CVE-2026-28343 ckeditor5: cross-site scripting (XSS)
- Nov 7, 2025CVE-2025-61261 Angular: cross-site scripting (XSS)
- Sep 3, 2025CVE-2025-58064 ckeditor5: cross-site scripting (XSS)
- Feb 20, 2025CVE-2025-25299 ckeditor5: cross-site scripting (XSS)
- Sep 25, 2024CVE-2024-45613 ckeditor5: cross-site scripting (XSS)
- Aug 3, 2022CVE-2022-31175 ckeditor5: cross-site scripting (XSS)
Questions about CVE-2021-21391
Is CVE-2021-21391 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 1.67% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of ckeditor5 are affected by CVE-2021-21391?
@ckeditor/ckeditor5-engine before 27.0.0, @ckeditor/ckeditor5-font before 27.0.0, @ckeditor/ckeditor5-image before 27.0.0, @ckeditor/ckeditor5-list before 27.0.0, @ckeditor/ckeditor5-markdown-gfm before 27.0.0, @ckeditor/ckeditor5-media-embed before 27.0.0 and 2 more, per the GitHub advisory GHSA-3rh3-wfr4-76mj. The tables above give every range the sources list.
Which version fixes CVE-2021-21391?
27.0.0, per the GitHub advisory GHSA-3rh3-wfr4-76mj. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-21391?
Medium (6.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2021-21391?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.