Skip to content
OpenAdvisories
Medium · 5.3 CVE-2025-6493 EUVD-2025-28740GHSA-pff4-9qxc-79mq

CodeMirror Markdown Mode markdown.js redos

Published Jun 22, 2025 · Updated Sep 29, 2025 · 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."

Affected products

VendorProductAffectedFixed
— 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, 5.65.12, 5.65.13, 5.65.14, 5.65.15, 5.65.16, 5.65.17, 5.65.18, 5.65.19, 5.65.20 6.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 codemirror-js No fix yet —
Debian 13 codemirror-js No fix yet —
Debian 12 codemirror-js No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 codemirror-js No fix yet —
Ubuntu 26.04 LTS codemirror-js No fix yet —
Ubuntu 25.10 codemirror-js No fix yet —
Ubuntu 24.04 LTS codemirror-js No fix yet —
Ubuntu 22.04 LTS codemirror-js No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS codemirror-js No fix yet —
Ubuntu 18.04 LTS codemirror-js No fix yet —
Ubuntu 16.04 LTS codemirror-js No fix yet —

Advisories 1

References