codemirror is vulnerable to Regular Expression Denial of Service (ReDoS)
53
Medium Risk
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.
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.
codemirror is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 2.33.0 - 5.65.21.
Upgrade the codemirror library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant