CVE-2021-21391: Regular expression Denial of Service in multiple packages

Published Apr 29, 2021
·
Updated

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 Software

8 affected components
CKEditor Ckeditor5-engine Node.js<27.0.0
CKEditor Ckeditor5-font Node.js<27.0.0
CKEditor Ckeditor5-image Node.js<27.0.0
CKEditor Ckeditor5-list Node.js<27.0.0
CKEditor Ckeditor5-markdown-gfm Node.js<27.0.0
CKEditor Ckeditor5-media-embed Node.js<27.0.0
CKEditor Ckeditor5-paste-from-office Node.js<27.0.0
CKEditor Ckeditor5-widget Node.js<27.0.0

Event History

Apr 29, 2021
CVE Published
via MITRE·12:20 AM
Data Sourced
via MITRE·12:20 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is CVE-2021-21391?

CVE-2021-21391 is a vulnerability in CKEditor 5 npm packages that allows arbitrary code execution.

2

Which npm packages are affected by CVE-2021-21391?

The following npm packages are affected: ckeditor5-engine, ckeditor5-font, ckeditor5-image, ckeditor5-list, ckeditor5-markdown-gfm, ckeditor5-media-embed, ckeditor5-paste-from-office, and ckeditor5-widget.

3

What is the severity of CVE-2021-21391?

The severity of CVE-2021-21391 is medium, with a CVSS score of 6.5.

4

How can I fix CVE-2021-21391?

To fix CVE-2021-21391, update the affected CKEditor 5 npm packages to a version higher than 27.0.0.

5

Where can I find more information about CVE-2021-21391?

You can find more information about CVE-2021-21391 in the following references: [GitHub Advisory](https://github.com/ckeditor/ckeditor5/security/advisories/GHSA-3rh3-wfr4-76mj) and [NPM Package](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203