CVE-2021-21391
mediumpriority · track · 27EPSS 0.017 · 77 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (17)
Products and version ranges known to be affected.
- ckeditor ckeditor5-markdown-gfm< 27.0.0nvdUScpe:2.3:a:ckeditor:ckeditor5-markdown-gfm:*:*:*:*:*:*:*:*
- ckeditor ckeditor5-paste-from-office< 27.0.0nvdUScpe:2.3:a:ckeditor:ckeditor5-paste-from-office:*:*:*:*:*:*:*:*
- npm @ckeditor/ckeditor5-paste-from-office< 27.0.0osvUSpkg:npm/%40ckeditor/ckeditor5-paste-from-office
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-3rh3-wfr4-76mjRegular expression Denial of Service in multiple packages2021-04-06ghsa · osvUS
### Impact 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. ### Patches The problem has been recognized and patched. The fix will be available in version 27.0.0. ### For more information Email us at security@cksource.com if you have any questions or comments about this advisory. ### Acknowledgements The CKEditor 5 team would like to thank Yeting Li for recognizing and reporting these vulnerabilities.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (28)
External citations — patches, advisories, analysis.
- https://github.com/ckeditor/ckeditor5/security/advisories/GHSA-3rh3-wfr4-76mjcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-21391cnnvd
- https://www.npmjs.com/package/@ckeditor/ckeditor5-enginecnnvd
- https://www.npmjs.com/package/@ckeditor/ckeditor5-fontcnnvd
- https://www.npmjs.com/package/@ckeditor/ckeditor5-imagecnnvd
- https://www.npmjs.com/package/@ckeditor/ckeditor5-listcnnvd
- https://www.npmjs.com/package/@ckeditor/ckeditor5-markdown-gfmcnnvd
- https://www.npmjs.com/package/@ckeditor/ckeditor5-media-embedcnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan