CVE-2025-6493
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:P
Summary
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."
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| n/a | CodeMirror | 5.65.0 | affected |
| n/a | CodeMirror | 5.65.1 | affected |
| n/a | CodeMirror | 5.65.2 | affected |
| n/a | CodeMirror | 5.65.3 | affected |
| n/a | CodeMirror | 5.65.4 | affected |
| n/a | CodeMirror | 5.65.5 | affected |
| n/a | CodeMirror | 5.65.6 | affected |
| n/a | CodeMirror | 5.65.7 | affected |
| n/a | CodeMirror | 5.65.8 | affected |
| n/a | CodeMirror | 5.65.9 | affected |
| n/a | CodeMirror | 5.65.10 | affected |
| n/a | CodeMirror | 5.65.11 | affected |
| n/a | CodeMirror | 5.65.12 | affected |
| n/a | CodeMirror | 5.65.13 | affected |
| n/a | CodeMirror | 5.65.14 | affected |
| n/a | CodeMirror | 5.65.15 | affected |
| n/a | CodeMirror | 5.65.16 | affected |
| n/a | CodeMirror | 5.65.17 | affected |
| n/a | CodeMirror | 5.65.18 | affected |
| n/a | CodeMirror | 5.65.19 | affected |
| n/a | CodeMirror | 5.65.20 | affected |
| n/a | CodeMirror | 6.0 | unaffected |
Weaknesses
- CWE-1333: Inefficient Regular Expression Complexity
- CWE-400: Resource Consumption
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: poc
- Automatable: yes
- Technical Impact: partial
References
- https://vuldb.com/?id.313610
- https://vuldb.com/?ctiid.313610
- https://vuldb.com/?submit.598875
- https://github.com/codemirror/codemirror5/issues/7128
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.