Advisory

GHSA-3rh3-wfr4-76mj

Also known as: CVE-2021-21391

Summary

Regular expression Denial of Service in multiple packages

Details

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 [email protected] 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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-04-06 17:28 UTC
Modified
2026-07-08 06:27 UTC

Affected packages and fixes

@ckeditor/ckeditor5-engine

npm · All systems

Affected

  • introduced 0, fixed 27.0.0 (semver)

Fixed versions

27.0.0

Fix

@ckeditor/ckeditor5-font

npm · All systems

Affected

  • introduced 0, fixed 27.0.0 (semver)

Fixed versions

27.0.0

Fix

@ckeditor/ckeditor5-image

npm · All systems

Affected

  • introduced 0, fixed 27.0.0 (semver)

Fixed versions

27.0.0

Fix

@ckeditor/ckeditor5-list

npm · All systems

Affected

  • introduced 0, fixed 27.0.0 (semver)

Fixed versions

27.0.0

Fix

@ckeditor/ckeditor5-markdown-gfm

npm · All systems

Affected

  • introduced 0, fixed 27.0.0 (semver)

Fixed versions

27.0.0

Fix

@ckeditor/ckeditor5-media-embed

npm · All systems

Affected

  • introduced 0, fixed 27.0.0 (semver)

Fixed versions

27.0.0

Fix

@ckeditor/ckeditor5-paste-from-office

npm · All systems

Affected

  • introduced 0, fixed 27.0.0 (semver)

Fixed versions

27.0.0

Fix

@ckeditor/ckeditor5-widget

npm · All systems

Affected

  • introduced 0, fixed 27.0.0 (semver)

Fixed versions

27.0.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences