CVE-2021-21391
JSON

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 packageVersionsReported by
ckeditor ckeditor5< 27.0.0CVE List
@ckeditor/ckeditor5-engine (npm)before 27.0.0GitHub Advisory Database
@ckeditor/ckeditor5-font (npm)before 27.0.0GitHub Advisory Database
@ckeditor/ckeditor5-image (npm)before 27.0.0GitHub Advisory Database
@ckeditor/ckeditor5-list (npm)before 27.0.0GitHub Advisory Database
@ckeditor/ckeditor5-markdown-gfm (npm)before 27.0.0GitHub Advisory Database
@ckeditor/ckeditor5-media-embed (npm)before 27.0.0GitHub Advisory Database
@ckeditor/ckeditor5-paste-from-office (npm)before 27.0.0GitHub Advisory Database
@ckeditor/ckeditor5-widget (npm)before 27.0.0GitHub Advisory Database
ckeditor ckeditor5-enginebefore 27.0.0NVD
ckeditor ckeditor5-fontbefore 27.0.0NVD
ckeditor ckeditor5-imagebefore 27.0.0NVD

All scores

GitHub_M6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD4.3medium CVSS:2.0AV: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.&#xa0;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.&#xa0;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.&#xa0;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.&#xa0;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.&#xa0;El problema ha sido reconocido y parcheado.&#xa0;La corrección estará disponible en la versión 27.0.0

References

https://www.npmjs.com/package/%40ckeditor/ckeditor5-markdown-gfm
https://github.com/ckeditor/ckeditor5/security/advisories/GHSA-3rh3-wfr4-76mjthird-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-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-21391advisory
https://github.com/ckeditor/ckeditor5/releases/tag/v27.0.0web
https://www.npmjs.com/package/@ckeditor/ckeditor5-engineweb

Sources

SourceRecordLicence
CVE ListCVE-2021-21391 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-3rh3-wfr4-76mj changed 2026-07-08CC-BY-4.0
NVDCVE-2021-21391 changed 2026-06-17Public domain