codemirror is vulnerable to Regular Expression Denial of Service (ReDoS)
53
CVE Score
Medium
Regular Expression Denial of Service (ReDoS)
Several regular expressions in Markdown mode (mode/markdown/markdown.js) use unbounded greedy or non-greedy quantifiers when matching trailing spaces, image and link markup, nested links, and angle-bracket email forms. Crafted Markdown that nearly matches those patterns forces catastrophic backtracking while the tokenizer runs. Applications that parse untrusted Markdown with this mode can freeze or stall for a long time, causing a denial of service. The fix is to move to CodeMirror 6, whose Markdown language support does not use these vulnerable patterns.
Upgrade the codemirror library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and enable Markdown mode on content that can include untrusted input.
2.33.0 - 5.65.21
Fixed in 6.0.0codemirror is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 2.33.0 - 5.65.21.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.