Skip to content

CKEditor 5 Markdown plugin Regular expression Denial of Service

Moderate severity GitHub Reviewed Published Jan 28, 2021 in ckeditor/ckeditor5 • Updated Jan 30, 2023

Package

npm @ckeditor/ckeditor5-markdown-gfm (npm)

Affected versions

<= 24.0.0

Patched versions

25.0.0

Description

Impact

A regular expression denial of service (ReDoS) vulnerability has been discovered in the CKEditor 5 Markdown plugin code. The vulnerability allowed to abuse a link recognition regular expression, which could cause a significant performance drop resulting in a browser tab freeze. It affects all users using the CKEditor 5 Markdown plugin at version <= 24.0.0.

Patches

The problem has been recognized and patched. The fix will be available in version 25.0.0.

Workarounds

The user can work around the issue by:

  • Upgrading CKEditor 5 to version 25.0.0.
  • Disabling the Markdown plugin.

More information

If you have any questions or comments about this advisory:

Acknowledgements

The CKEditor 5 team would like to thank Erik Krogh Kristensen from the GitHub team for recognizing this vulnerability and
Alvaro Muñoz from GitHub for reporting it.

References

@Mgsy Mgsy published to ckeditor/ckeditor5 Jan 28, 2021
Reviewed Jan 29, 2021
Published to the GitHub Advisory Database Jan 29, 2021
Published by the National Vulnerability Database Jan 29, 2021
Last updated Jan 30, 2023

Severity

Moderate
6.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Weaknesses

CVE ID

CVE-2021-21254

GHSA ID

GHSA-hgmg-hhc8-g5wr

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.