# CVE-2025-6493: CodeMirror Markdown Mode markdown.js redos

- Severity: Medium 6.9 (CVSS:4.0, scored by VulDB) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 47% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-06-22T22:00:10.483Z
- Modified: 2026-06-17T10:02:00.770Z
- Weaknesses: CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulDB

## 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."

(As written by CVE List.)

## Affected

- CodeMirror: 5.65.0; 5.65.1; 5.65.2; 5.65.3; 5.65.4; 5.65.5; 5.65.6; 5.65.7; 5.65.8; 5.65.9; 5.65.10; 5.65.11; and 9 more (not affected: 6.0)

## Every score

- VulDB: CVSS:4.0 6.9 Medium `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`
- VulDB: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P/E:POC/RL:OF/RC:C`

## References

- <https://github.com/codemirror/codemirror5/issues/7128> (exploit, issue-tracking)
- <https://vuldb.com/?id.313610> (technical-description, vdb-entry)
- <https://vuldb.com/?ctiid.313610> (permissions-required, signature)
- <https://vuldb.com/?submit.598875> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-6493](https://www.cve.org/CVERecord?id=CVE-2025-6493), CVE Terms of Use, modified 2025-09-29
- NVD: [CVE-2025-6493](https://nvd.nist.gov/vuln/detail/CVE-2025-6493), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-6493 · Whole record: https://cve.day/CVE-2025-6493.json · Rebuilt by cve.day 2026-11-25T22:58:59.518Z
