CVE-2021-21391Ckeditor5-engine
Medium 6.5 No auth needed
Follow: this CVE · Ckeditor · Ckeditor5-engine We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- 1.7% probability of exploitation in 30 days · percentile 77
- Auth required
- No
- Published
- Apr 29, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-400
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Ckeditor5-engine.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | @ckeditor/ckeditor5-engine |
< 27.0.0 |
27.0.0 |
npm install @ckeditor/ckeditor5-engine@27.0.0 |
| npm | @ckeditor/ckeditor5-font |
< 27.0.0 |
27.0.0 |
npm install @ckeditor/ckeditor5-font@27.0.0 |
| npm | @ckeditor/ckeditor5-image |
< 27.0.0 |
27.0.0 |
npm install @ckeditor/ckeditor5-image@27.0.0 |
| npm | @ckeditor/ckeditor5-list |
< 27.0.0 |
27.0.0 |
npm install @ckeditor/ckeditor5-list@27.0.0 |
| npm | @ckeditor/ckeditor5-markdown-gfm |
< 27.0.0 |
27.0.0 |
npm install @ckeditor/ckeditor5-markdown-gfm@27.0.0 |
| npm | @ckeditor/ckeditor5-media-embed |
< 27.0.0 |
27.0.0 |
npm install @ckeditor/ckeditor5-media-embed@27.0.0 |
| npm | @ckeditor/ckeditor5-paste-from-office |
< 27.0.0 |
27.0.0 |
npm install @ckeditor/ckeditor5-paste-from-office@27.0.0 |
| npm | @ckeditor/ckeditor5-widget |
< 27.0.0 |
27.0.0 |
npm install @ckeditor/ckeditor5-widget@27.0.0 |
Per OSV / GitHub Advisories (GHSA-3rh3-wfr4-76mj). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | 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 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- www.npmjs.com
- www.npmjs.com
- www.npmjs.com
- www.npmjs.com
- www.npmjs.com
- www.npmjs.com
- www.npmjs.com
- www.npmjs.com