Vulnerability · Published Apr 29, 2021 · Assigned by GitHub_M
CVE-2021-21391Regular expression Denial of Service in multiple packages
Medium 6.5
In plain English
A medium-severity uncontrolled resource consumption in ckeditor5 from ckeditor. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu:22.04:LTS | ckeditor3 | no fix listed | UBUNTU-CVE-2021-21391 |
| Ubuntu:24.04:LTS | ckeditor3 | no fix listed | UBUNTU-CVE-2021-21391 |
| npm | @ckeditor/ckeditor5-engine | 27.0.0 | GHSA-3rh3-wfr4-76mj |
| npm | @ckeditor/ckeditor5-font | 27.0.0 | GHSA-3rh3-wfr4-76mj |
| npm | @ckeditor/ckeditor5-image | 27.0.0 | GHSA-3rh3-wfr4-76mj |
| npm | @ckeditor/ckeditor5-list | 27.0.0 | GHSA-3rh3-wfr4-76mj |
| npm | @ckeditor/ckeditor5-markdown-gfm | 27.0.0 | GHSA-3rh3-wfr4-76mj |
| npm | @ckeditor/ckeditor5-media-embed | 27.0.0 | GHSA-3rh3-wfr4-76mj |
| npm | @ckeditor/ckeditor5-paste-from-office | 27.0.0 | GHSA-3rh3-wfr4-76mj |
| npm | @ckeditor/ckeditor5-widget | 27.0.0 | GHSA-3rh3-wfr4-76mj |
Affected products (as reported)
Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
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