GitHub Advisoryadvisory · npm
GHSA-hgmg-hhc8-g5wr CKEditor 5 Markdown plugin Regular expression Denial of Service
MEDIUM
Official page ↗
- Aliases
- CVE-2021-21254
- Ecosystem
- npm
- Packages
- @ckeditor/ckeditor5-markdown-gfm
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-400
- Reviewed
- 2021-01-29
Affected packages
• npm @ckeditor/ckeditor5-markdown-gfm: < 25.0.0 → fixed in 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:
• Email us at [email protected]
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.
Related
Alias · CVE (1)
- CVE-2021-21254 CKEditor 5 is an open source rich text editor framework with a modular architecture. vulnerability
Weakness · CWE (1)
- CWE-400 Uncontrolled Resource Consumption weakness
References
- https://github.com/ckeditor/ckeditor5/security/advisories/GHSA-hgmg-hhc8-g5wr web
- https://nvd.nist.gov/vuln/detail/CVE-2021-21254 advisory
- https://github.com/ckeditor/ckeditor5 package
- https://github.com/ckeditor/ckeditor5/releases/tag/v25.0.0 web
- https://www.npmjs.com/package/@ckeditor/ckeditor5-markdown-gfm web