Security: VULN CVE-2025-6493 in codemirror #7139
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A vulnerability has been discovered in CodeMirror (≤ 5.17.0) affecting the Markdown mode (mode/markdown/markdown.js). This flaw leads to inefficient regular expression complexity, making the component susceptible to a Regular Expression Denial of Service (ReDoS). The exploit can be triggered remotely.
Details
Component: mode/markdown/markdown.js
Vulnerability Type: ReDoS via greedy quantifiers combined with unbounded capture groups—leading to exponential backtracking
CVSS Score:
v3.1: 5.3 (Medium)
v4.0: 5.5 (Medium)
Exploitability:
The issue is easy to exploit
Attack can be launched remotely by supplying crafted Markdown input
Impact
This vulnerability allows an attacker to craft Markdown input that causes excessive CPU usage in the affected component. This leads to:
Service unavailability or performance degradation
If the component is part of a live user-facing parsing pipeline, it may impair availability of the editor or consuming service
No direct risk to data integrity or confidentiality, but a clear DoS vector exists
Duplicated of https://github.com/codemirror/codemirror5/issues/7128, it looks like.