6.5medium
Regular expression Denial of Service in multiple packages
- Severity
- 6.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.67% (higher than 77% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-3rh3-wfr4-76mj
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
| Product or package | Versions | Reported by |
|---|---|---|
| ckeditor ckeditor5 | < 27.0.0 | CVE List |
| @ckeditor/ckeditor5-engine (npm) | before 27.0.0 | GitHub Advisory Database |
| @ckeditor/ckeditor5-font (npm) | before 27.0.0 | GitHub Advisory Database |
| @ckeditor/ckeditor5-image (npm) | before 27.0.0 | GitHub Advisory Database |
| @ckeditor/ckeditor5-list (npm) | before 27.0.0 | GitHub Advisory Database |
| @ckeditor/ckeditor5-markdown-gfm (npm) | before 27.0.0 | GitHub Advisory Database |
| @ckeditor/ckeditor5-media-embed (npm) | before 27.0.0 | GitHub Advisory Database |
| @ckeditor/ckeditor5-paste-from-office (npm) | before 27.0.0 | GitHub Advisory Database |
| @ckeditor/ckeditor5-widget (npm) | before 27.0.0 | GitHub Advisory Database |
| ckeditor ckeditor5-engine | before 27.0.0 | NVD |
| ckeditor ckeditor5-font | before 27.0.0 | NVD |
| ckeditor ckeditor5-image | before 27.0.0 | NVD |
| ckeditor ckeditor5-list | before 27.0.0 | NVD |
| ckeditor ckeditor5-markdown-gfm | before 27.0.0 | NVD |
| ckeditor ckeditor5-media-embed | before 27.0.0 | NVD |
| ckeditor ckeditor5-paste-from-office | before 27.0.0 | NVD |
| ckeditor ckeditor5-widget | before 27.0.0 | NVD |
All scores
| GitHub_M | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
CKEditor 5 proporciona una solución de edición WYSIWYG. Este CVE afecta a los siguientes paquetes npm: ckeditor5-engine, ckeditor5-font, ckeditor5-image, ckeditor5-list, ckeditor5-markdown-gfm, ckeditor5-media-embed, ckeditor5-paste-from-office y ckeditor5-widget. Después de una auditoría interna, se detectó una vulnerabilidad de denegación de servicio de expresión regular (ReDoS) en varios paquetes de CKEditor 5. La vulnerabilidad permitió abusar de determinadas expresiones regulares, lo que podría causar una perdida significativa del rendimiento, lo que causaría la congelación de la pestaña del navegador. Afecta a todos los usuarios que usan los paquetes CKEditor 5 enumerados anteriormente en la versión anterior a 26.0.0 e incluyéndola. El problema ha sido reconocido y parcheado. La corrección estará disponible en la versión 27.0.0
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21391 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3rh3-wfr4-76mj changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-21391 changed 2026-06-17 | Public domain |