cve.bz

CVE-2025-6493 Uncontrolled Resource Consumption

5.5 mediumEPSS 0.6%

Medium (5.5). EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
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."

Severity

CVSS 4.0

5.5 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

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
EPSS
0.6% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 47th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-06-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-400 Uncontrolled Resource Consumption
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain CVE-2025-6493 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-6493?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-6493?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-6493 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14codemirror-jsno fix listedDEBIAN-CVE-2025-6493
Ubuntu16.04:LTS, 18.04:LTS, 22.04:LTS and 5 morecodemirror-jsno fix listedUBUNTU-CVE-2025-6493

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is an inefficient regular expression complexity issue, also known as a Regular Expression Denial of Service (ReDoS), in the Markdown mode component. A remote, unauthenticated attacker can submit a specially crafted input that causes a denial of service (DoS) due to excessive CPU consumption. While the vulnerability is easily exploitable, it only impacts the availability of the component processing the markdown, and does not lead to a compromise of data or system integrity.

The assigned severity is Moderate because the flaw, while easy to exploit remotely without authentication, has its impact limited to a denial of service. It does not allow for unauthorized access to data or arbitrary code execution, which would warrant a higher rating.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
OpenShift Serverlessopenshift-serverless-1/kn-backstage-plugins-eventmesh-rhel8Not affected
Red Hat Developer Hub 1rhdh/rhdh-hub-rhel9Not affected
Red Hat Developer Hub 1rhdh/rhdh-rhel9-operatorNot affected
Red Hat Enterprise Linux 10gjsNot affected
Red Hat Enterprise Linux 7firefoxNot affected
Red Hat Enterprise Linux 7thunderbirdNot affected
Red Hat Enterprise Linux 8mozjs60Not affected
Red Hat Enterprise Linux 9gjsNot affected
Red Hat Enterprise Linux 9polkitNot affected
Red Hat Fuse 7io.hawt-hawtio-onlineNot affected
Red Hat Fuse 7io.hawt-projectNot affected
Red Hat Fuse 7io.syndesis-syndesis-parentNot affected
Red Hat JBoss Enterprise Application Platform 7io.hawt-projectNot affected
Red Hat JBoss Enterprise Application Platform 8io.hawt-projectNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packio.hawt-projectNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-monitoring-plugin-rhel8Not affected
Red Hat OpenShift Container Platform 4openshift4/ose-monitoring-plugin-rhel9Not affected
Red Hat OpenShift Dev Spacesdevspaces/dashboard-rhel8Not affected
Red Hat OpenShift Dev Spacesdevspaces/dashboard-rhel9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-6493.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup
  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON