CVE-2025-6493: CodeMirror · ReDoS
Affects CodeMirrorSource CVE Database V5
Not known to be exploited · CVSS 6.9 Medium.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 44% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:PExploitation evidence
Disclosed: evidence found.
CVE published 22 Jun 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
npmcodemirrorpkg:npm/codemirrorOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should take the following specific mitigation steps: 1) Immediately identify all instances of CodeMirror in their web applications, focusing on versions up to 5.65.20, especially where Markdown Mode is enabled. 2) Upgrade all affected CodeMirror components to version 6.0 or later, as this version addresses the inefficient regular expression complexity and is actively maintained. 3) Implement input validation and sanitization on Markdown inputs to limit the complexity and length of user-submitted content, reducing the risk of triggering ReDoS conditions. 4) Deploy Web Application Firewalls (WAFs) with rules designed to detect and block suspicious patterns indicative of ReDoS attacks targeting Markdown inputs. 5) Monitor application performance metrics and CPU usage to detect anomalies that may indicate ongoing exploitation attempts. 6) Apply rate limiting on endpoints that process Markdown content to mitigate the impact of automated attacks. 7) Conduct security testing and code reviews focusing on regular expression usage in custom Markdown processing logic to identify and remediate similar inefficiencies. 8) Educate development teams about the risks of ReDoS and encourage the use of safer regular expression patterns and libraries.
Description
A weakness has been identified in CodeMirror up to 5.65.20. Affected is an unknown function of the file mode/markdown/markdown.js of the component Markdown Mode. This manipulation causes inefficient regular expression complexity. It is possible to initiate the attack remotely. The exploit has been made available to the public and could be exploited. Upgrading to version 6.0 is able to address this issue. You should upgrade the affected component. Not all code samples mentioned in the GitHub issue can be found. The repository mentions, that "CodeMirror 6 exists, and is [...] much more actively maintained."