Quick answers
- Is CVE-2021-21254 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2021-21254 being exploited in the wild.
- How severe is CVE-2021-21254?
- Low severity, with a CVSS score of 3.1, published 29 January 2021.
- Which products and versions are affected?
- CKSource CKEditor 5 Markdown plugin <= 24.0.0; @ckeditor/ckeditor5-markdown-gfm (npm) SEMVER:introduced=0,fixed=25.0.0.
- Is there a fix for CVE-2021-21254?
- Yes. @ckeditor/ckeditor5-markdown-gfm (npm): upgrade to 25.0.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2021-21254 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2021-21254?
- Check whether you run CKSource CKEditor 5 Markdown plugin or @ckeditor/ckeditor5-markdown-gfm (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- @ckeditor/ckeditor5-markdown-gfm (npm): upgrade to 25.0.0 or later
npm install @ckeditor/ckeditor5-markdown-gfm@25.0.0
Technical details
A regular expression denial of service (ReDoS) vulnerability exists in the CKEditor 5 Markdown plugin's link recognition regex pattern (CWE-400). An attacker can craft input containing specific character sequences that trigger catastrophic backtracking in the regex engine, causing significant performance degradation and browser tab freeze. The vulnerability affects versions up to 24.0.0 and requires network access to a web application using the vulnerable plugin, with no authentication or user interaction required beyond viewing or entering text. The fix is available in version 25.0.0 or users can mitigate by disabling the Markdown plugin entirely.
Affected products
- CKSource CKEditor 5 Markdown plugin <= 24.0.0
Identifiers
- CVE-2021-21254
- GHSA-hgmg-hhc8-g5wr
Timeline
- 2021-01-29: disclosed
- 2021: patched: Fix available in version 25.0.0