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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-04-29 · Modified: 2024-08-03
- Aliases: UBUNTU-CVE-2021-21391, GHSA-3rh3-wfr4-76mj
- Record: https://cvemate.com/vulnerability/CVE-2021-21391 · JSON: https://cvemate.com/vulnerability/CVE-2021-21391/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 1.667%, percentile 77.568%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- ckeditor ckeditor5: \< 27.0.0
- ckeditor ckeditor5-engine: \< 27.0.0
- ckeditor ckeditor5-font: \< 27.0.0
- ckeditor ckeditor5-image: \< 27.0.0
- ckeditor ckeditor5-list: \< 27.0.0
- ckeditor ckeditor5-markdown-gfm: \< 27.0.0
- ckeditor ckeditor5-media-embed: \< 27.0.0
- ckeditor ckeditor5-paste-from-office: \< 27.0.0
- ckeditor ckeditor5-widget: \< 27.0.0
- ubuntu ckeditor3 (Ubuntu): All versions (No fix recorded)
- @ckeditor ckeditor5-engine (Npm): \< 27.0.0
- @ckeditor ckeditor5-font (Npm): \< 27.0.0
- @ckeditor ckeditor5-image (Npm): \< 27.0.0
- @ckeditor ckeditor5-list (Npm): \< 27.0.0
- @ckeditor ckeditor5-markdown-gfm (Npm): \< 27.0.0
- @ckeditor ckeditor5-media-embed (Npm): \< 27.0.0
- @ckeditor ckeditor5-paste-from-office (Npm): \< 27.0.0
- @ckeditor ckeditor5-widget (Npm): \< 27.0.0

## References (first 20 of 21)

- <https://www.npmjs.com/package/%40ckeditor/ckeditor5-markdown-gfm>
- <https://github.com/ckeditor/ckeditor5/security/advisories/GHSA-3rh3-wfr4-76mj>
- <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://ubuntu.com/security/CVE-2021-21391>
- <https://www.npmjs.com/package/@ckeditor/ckeditor5-markdown-gfm>
- <https://www.npmjs.com/package/@ckeditor/ckeditor5-engine>
- <https://www.npmjs.com/package/@ckeditor/ckeditor5-image>
- <https://www.npmjs.com/package/@ckeditor/ckeditor5-media-embed>
- <https://www.npmjs.com/package/@ckeditor/ckeditor5-list>
- <https://www.npmjs.com/package/@ckeditor/ckeditor5-font>
- <https://www.npmjs.com/package/@ckeditor/ckeditor5-paste-from-office>
- <https://www.npmjs.com/package/@ckeditor/ckeditor5-widget>
- <https://www.cve.org/CVERecord?id=CVE-2021-21391>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21391>

---

Data as of 2026-12-05T04:46:57.410Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
