CVE-2025-6493

CodeMirror Markdown Mode markdown.js redos

State
Published
Severity
6.9 Medium
Published
Jun 22, 2025
Updated
Sep 29, 2025
Reserved
Jun 22, 2025

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
4.06.9 MediumCVSS: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:PVulDB
3.15.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:CVulDB
3.05.3 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:CVulDB
2.05.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P/E:POC/RL:OF/RC:CVulDB

Weaknesses

  • CWE-1333 Inefficient Regular Expression Complexity
  • CWE-400 Resource Consumption

Affected Products

ProductVersions
CodeMirrorn/a
  • 5.65.0Affected
  • 5.65.1Affected
  • 5.65.2Affected
  • 5.65.3Affected
  • 5.65.4Affected
  • 5.65.5Affected
  • 5.65.6Affected
  • 5.65.7Affected
  • 5.65.8Affected
  • 5.65.9Affected
  • 5.65.10Affected
  • 5.65.11Affected
  • 5.65.12Affected
  • 5.65.13Affected
  • 5.65.14Affected
  • 5.65.15Affected
  • 5.65.16Affected
  • 5.65.17Affected
  • 5.65.18Affected
  • 5.65.19Affected
  • 5.65.20Affected
  • 6.0Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.