CVE-2021-21391
MEDIUM 6.5CVSS 3.1Regular 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.
- Published
- 29 Apr 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-400
- Also known as
- GHSA-3rh3-wfr4-76mj
- Sources
- NVDJSONOSV GHSA-3rh3-wfr4-76mjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ckeditor | ckeditor5-enginecpe:2.3:a:ckeditor:ckeditor5-engine:*:*:*:*:*:node.js:*:* |
< 27.0.0 | 27.0.0 |
| NVD | ckeditor | ckeditor5-fontcpe:2.3:a:ckeditor:ckeditor5-font:*:*:*:*:*:node.js:*:* |
< 27.0.0 | 27.0.0 |
| NVD | ckeditor | ckeditor5-imagecpe:2.3:a:ckeditor:ckeditor5-image:*:*:*:*:*:node.js:*:* |
< 27.0.0 | 27.0.0 |
| NVD | ckeditor | ckeditor5-listcpe:2.3:a:ckeditor:ckeditor5-list:*:*:*:*:*:node.js:*:* |
< 27.0.0 | 27.0.0 |
| NVD | ckeditor | ckeditor5-markdown-gfmcpe:2.3:a:ckeditor:ckeditor5-markdown-gfm:*:*:*:*:*:node.js:*:* |
< 27.0.0 | 27.0.0 |
| NVD | ckeditor | ckeditor5-media-embedcpe:2.3:a:ckeditor:ckeditor5-media-embed:*:*:*:*:*:node.js:*:* |
< 27.0.0 | 27.0.0 |
| NVD | ckeditor | ckeditor5-paste-from-officecpe:2.3:a:ckeditor:ckeditor5-paste-from-office:*:*:*:*:*:node.js:*:* |
< 27.0.0 | 27.0.0 |
| NVD | ckeditor | ckeditor5-widgetcpe:2.3:a:ckeditor:ckeditor5-widget:*:*:*:*:*:node.js:*:* |
< 27.0.0 | 27.0.0 |
| OSV | npm | @ckeditor/ckeditor5-engine | < 27.0.0 | 27.0.0 |
| OSV | npm | @ckeditor/ckeditor5-font | < 27.0.0 | 27.0.0 |
| OSV | npm | @ckeditor/ckeditor5-image | < 27.0.0 | 27.0.0 |
| OSV | npm | @ckeditor/ckeditor5-list | < 27.0.0 | 27.0.0 |
| OSV | npm | @ckeditor/ckeditor5-markdown-gfm | < 27.0.0 | 27.0.0 |
| OSV | npm | @ckeditor/ckeditor5-media-embed | < 27.0.0 | 27.0.0 |
| OSV | npm | @ckeditor/ckeditor5-paste-from-office | < 27.0.0 | 27.0.0 |
| OSV | npm | @ckeditor/ckeditor5-widget | < 27.0.0 | 27.0.0 |
References
- https://github.com/ckeditor/ckeditor5/security/advisories/GHSA-3rh3-wfr4-76mj · Third Party Advisory, WEB
- https://www.npmjs.com/package/%40ckeditor/ckeditor5-engine
- https://www.npmjs.com/package/%40ckeditor/ckeditor5-font
- https://www.npmjs.com/package/%40ckeditor/ckeditor5-image
- https://www.npmjs.com/package/%40ckeditor/ckeditor5-list
- https://www.npmjs.com/package/%40ckeditor/ckeditor5-markdown-gfm
- https://www.npmjs.com/package/%40ckeditor/ckeditor5-media-embed
- https://www.npmjs.com/package/%40ckeditor/ckeditor5-paste-from-office
- https://www.npmjs.com/package/%40ckeditor/ckeditor5-widget
- https://nvd.nist.gov/vuln/detail/CVE-2021-21391 · ADVISORY
- https://github.com/ckeditor/ckeditor5/releases/tag/v27.0.0 · WEB
- https://www.npmjs.com/package/@ckeditor/ckeditor5-engine · WEB
- https://www.npmjs.com/package/@ckeditor/ckeditor5-font · WEB
- https://www.npmjs.com/package/@ckeditor/ckeditor5-image · WEB
- https://www.npmjs.com/package/@ckeditor/ckeditor5-list · WEB
- https://www.npmjs.com/package/@ckeditor/ckeditor5-markdown-gfm · WEB
- https://www.npmjs.com/package/@ckeditor/ckeditor5-media-embed · WEB
- https://www.npmjs.com/package/@ckeditor/ckeditor5-paste-from-office · WEB
- https://www.npmjs.com/package/@ckeditor/ckeditor5-widget · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 29 Apr 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 6 Apr 2021)