# CVE-2021-21254: Regular expression Denial of Service in Markdown plugin

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.81%, higher than 79% of CVEs (2026-12-01)
- Published: 2021-01-29T21:51:22.000Z
- Modified: 2026-07-08T06:29:35.375Z
- Also known as: GHSA-hgmg-hhc8-g5wr
- Weaknesses: CWE-400
- Assigned by: GitHub_M

## Description

CKEditor 5 is an open source rich text editor framework with a modular architecture. The CKEditor 5 Markdown plugin (@ckeditor/ckeditor5-markdown-gfm) before version 25.0.0 has a regex denial of service (ReDoS) vulnerability. The vulnerability allowed to abuse link recognition regular expression, which could cause a significant performance drop resulting in browser tab freeze. It affects all users using CKEditor 5 Markdown plugin at version <= 24.0.0. The problem has been recognized and patched. The fix will be available in version 25.0.0.

(As written by CVE List.)

## Affected

- ckeditor ckeditor5: < 25.0.0; before 25.0.0
- @ckeditor/ckeditor5-markdown-gfm (npm): before 25.0.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:N/A:P`

## References

- <https://github.com/ckeditor/ckeditor5/security/advisories/GHSA-hgmg-hhc8-g5wr> (third-party-advisory, web)
- <https://github.com/ckeditor/ckeditor5/releases/tag/v25.0.0> (release-notes, third-party-advisory, web)
- <https://www.npmjs.com/package/%40ckeditor/ckeditor5-markdown-gfm>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21254> (advisory)
- <https://github.com/ckeditor/ckeditor5> (package)
- <https://www.npmjs.com/package/@ckeditor/ckeditor5-markdown-gfm> (web)

## Sources

- CVE List: [CVE-2021-21254](https://www.cve.org/CVERecord?id=CVE-2021-21254), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-hgmg-hhc8-g5wr](https://github.com/advisories/GHSA-hgmg-hhc8-g5wr), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-21254](https://nvd.nist.gov/vuln/detail/CVE-2021-21254), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21254 · Whole record: https://cve.day/CVE-2021-21254.json · Rebuilt by cve.day 2026-11-25T22:57:59.767Z
