CVE-2025-6493 (GCVE-0-2025-6493)
Vulnerability from cvelistv5
Published
2025-06-22 22:00
Modified
2025-09-29 13:48
CWE
  • CWE-1333 - Inefficient Regular Expression Complexity
  • CWE-400 - Resource Consumption
Summary
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."
References
https://vuldb.com/?id.313610 vdb-entry, technical-description
https://vuldb.com/?ctiid.313610 signature, permissions-required
https://vuldb.com/?submit.598875 third-party-advisory
https://github.com/codemirror/codemirror5/issues/7128 exploit, issue-tracking
Impacted products
Vendor Product Version
n/a CodeMirror Version: 5.65.0
Version: 5.65.1
Version: 5.65.2
Version: 5.65.3
Version: 5.65.4
Version: 5.65.5
Version: 5.65.6
Version: 5.65.7
Version: 5.65.8
Version: 5.65.9
Version: 5.65.10
Version: 5.65.11
Version: 5.65.12
Version: 5.65.13
Version: 5.65.14
Version: 5.65.15
Version: 5.65.16
Version: 5.65.17
Version: 5.65.18
Version: 5.65.19
Version: 5.65.20
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2025-6493",
                "options": [
                  {
                    "Exploitation": "poc"
                  },
                  {
                    "Automatable": "yes"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-06-23T15:43:06.172562Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-06-23T16:15:08.882Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "modules": [
            "Markdown Mode"
          ],
          "product": "CodeMirror",
          "vendor": "n/a",
          "versions": [
            {
              "status": "affected",
              "version": "5.65.0"
            },
            {
              "status": "affected",
              "version": "5.65.1"
            },
            {
              "status": "affected",
              "version": "5.65.2"
            },
            {
              "status": "affected",
              "version": "5.65.3"
            },
            {
              "status": "affected",
              "version": "5.65.4"
            },
            {
              "status": "affected",
              "version": "5.65.5"
            },
            {
              "status": "affected",
              "version": "5.65.6"
            },
            {
              "status": "affected",
              "version": "5.65.7"
            },
            {
              "status": "affected",
              "version": "5.65.8"
            },
            {
              "status": "affected",
              "version": "5.65.9"
            },
            {
              "status": "affected",
              "version": "5.65.10"
            },
            {
              "status": "affected",
              "version": "5.65.11"
            },
            {
              "status": "affected",
              "version": "5.65.12"
            },
            {
              "status": "affected",
              "version": "5.65.13"
            },
            {
              "status": "affected",
              "version": "5.65.14"
            },
            {
              "status": "affected",
              "version": "5.65.15"
            },
            {
              "status": "affected",
              "version": "5.65.16"
            },
            {
              "status": "affected",
              "version": "5.65.17"
            },
            {
              "status": "affected",
              "version": "5.65.18"
            },
            {
              "status": "affected",
              "version": "5.65.19"
            },
            {
              "status": "affected",
              "version": "5.65.20"
            },
            {
              "status": "unaffected",
              "version": "6.0"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "reporter",
          "value": "DayShift (VulDB User)"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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.\""
        },
        {
          "lang": "de",
          "value": "In CodeMirror up to 5.65.20 wurde eine Schwachstelle gefunden. Hierbei geht es um eine nicht exakt ausgemachte Funktion der Datei mode/markdown/markdown.js der Komponente Markdown Mode. Durch Beeinflussen mit unbekannten Daten kann eine inefficient regular expression complexity-Schwachstelle ausgenutzt werden. Die Umsetzung des Angriffs kann dabei \u00fcber das Netzwerk erfolgen. Der Exploit steht zur \u00f6ffentlichen Verf\u00fcgung. Das Problem kann durch ein Upgrade auf Version 6.0 adressiert werden. Als bestm\u00f6gliche Massnahme wird das Einspielen eines Upgrades empfohlen."
        }
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "baseScore": 6.9,
            "baseSeverity": "MEDIUM",
            "vectorString": "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",
            "version": "4.0"
          }
        },
        {
          "cvssV3_1": {
            "baseScore": 5.3,
            "baseSeverity": "MEDIUM",
            "vectorString": "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",
            "version": "3.1"
          }
        },
        {
          "cvssV3_0": {
            "baseScore": 5.3,
            "baseSeverity": "MEDIUM",
            "vectorString": "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",
            "version": "3.0"
          }
        },
        {
          "cvssV2_0": {
            "baseScore": 5,
            "vectorString": "AV:N/AC:L/Au:N/C:N/I:N/A:P/E:POC/RL:OF/RC:C",
            "version": "2.0"
          }
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-1333",
              "description": "Inefficient Regular Expression Complexity",
              "lang": "en",
              "type": "CWE"
            }
          ]
        },
        {
          "descriptions": [
            {
              "cweId": "CWE-400",
              "description": "Resource Consumption",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-09-29T13:48:37.784Z",
        "orgId": "1af790b2-7ee1-4545-860a-a788eba489b5",
        "shortName": "VulDB"
      },
      "references": [
        {
          "name": "VDB-313610 | CodeMirror Markdown Mode markdown.js redos",
          "tags": [
            "vdb-entry",
            "technical-description"
          ],
          "url": "https://vuldb.com/?id.313610"
        },
        {
          "name": "VDB-313610 | CTI Indicators (IOB, IOC, TTP, IOA)",
          "tags": [
            "signature",
            "permissions-required"
          ],
          "url": "https://vuldb.com/?ctiid.313610"
        },
        {
          "name": "Submit #598875 | codemirror codemirror5 \u003c=5.17.0 Inefficient Regular Expression Complexity",
          "tags": [
            "third-party-advisory"
          ],
          "url": "https://vuldb.com/?submit.598875"
        },
        {
          "tags": [
            "exploit",
            "issue-tracking"
          ],
          "url": "https://github.com/codemirror/codemirror5/issues/7128"
        }
      ],
      "timeline": [
        {
          "lang": "en",
          "time": "2025-06-22T00:00:00.000Z",
          "value": "Advisory disclosed"
        },
        {
          "lang": "en",
          "time": "2025-06-22T02:00:00.000Z",
          "value": "VulDB entry created"
        },
        {
          "lang": "en",
          "time": "2025-09-29T15:53:16.000Z",
          "value": "VulDB entry last update"
        }
      ],
      "title": "CodeMirror Markdown Mode markdown.js redos"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "1af790b2-7ee1-4545-860a-a788eba489b5",
    "assignerShortName": "VulDB",
    "cveId": "CVE-2025-6493",
    "datePublished": "2025-06-22T22:00:10.483Z",
    "dateReserved": "2025-06-22T06:17:29.313Z",
    "dateUpdated": "2025-09-29T13:48:37.784Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2025-6493\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"poc\"}, {\"Automatable\": \"yes\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-06-23T15:43:06.172562Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-06-23T15:43:15.272Z\"}}], \"cna\": {\"title\": \"CodeMirror Markdown Mode markdown.js redos\", \"credits\": [{\"lang\": \"en\", \"type\": \"reporter\", \"value\": \"DayShift (VulDB User)\"}], \"metrics\": [{\"cvssV4_0\": {\"version\": \"4.0\", \"baseScore\": 6.9, \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"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\"}}, {\"cvssV3_1\": {\"version\": \"3.1\", \"baseScore\": 5.3, \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"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\"}}, {\"cvssV3_0\": {\"version\": \"3.0\", \"baseScore\": 5.3, \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"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\"}}, {\"cvssV2_0\": {\"version\": \"2.0\", \"baseScore\": 5, \"vectorString\": \"AV:N/AC:L/Au:N/C:N/I:N/A:P/E:POC/RL:OF/RC:C\"}}], \"affected\": [{\"vendor\": \"n/a\", \"modules\": [\"Markdown Mode\"], \"product\": \"CodeMirror\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.65.0\"}, {\"status\": \"affected\", \"version\": \"5.65.1\"}, {\"status\": \"affected\", \"version\": \"5.65.2\"}, {\"status\": \"affected\", \"version\": \"5.65.3\"}, {\"status\": \"affected\", \"version\": \"5.65.4\"}, {\"status\": \"affected\", \"version\": \"5.65.5\"}, {\"status\": \"affected\", \"version\": \"5.65.6\"}, {\"status\": \"affected\", \"version\": \"5.65.7\"}, {\"status\": \"affected\", \"version\": \"5.65.8\"}, {\"status\": \"affected\", \"version\": \"5.65.9\"}, {\"status\": \"affected\", \"version\": \"5.65.10\"}, {\"status\": \"affected\", \"version\": \"5.65.11\"}, {\"status\": \"affected\", \"version\": \"5.65.12\"}, {\"status\": \"affected\", \"version\": \"5.65.13\"}, {\"status\": \"affected\", \"version\": \"5.65.14\"}, {\"status\": \"affected\", \"version\": \"5.65.15\"}, {\"status\": \"affected\", \"version\": \"5.65.16\"}, {\"status\": \"affected\", \"version\": \"5.65.17\"}, {\"status\": \"affected\", \"version\": \"5.65.18\"}, {\"status\": \"affected\", \"version\": \"5.65.19\"}, {\"status\": \"affected\", \"version\": \"5.65.20\"}, {\"status\": \"unaffected\", \"version\": \"6.0\"}]}], \"timeline\": [{\"lang\": \"en\", \"time\": \"2025-06-22T00:00:00.000Z\", \"value\": \"Advisory disclosed\"}, {\"lang\": \"en\", \"time\": \"2025-06-22T02:00:00.000Z\", \"value\": \"VulDB entry created\"}, {\"lang\": \"en\", \"time\": \"2025-09-29T15:53:16.000Z\", \"value\": \"VulDB entry last update\"}], \"references\": [{\"url\": \"https://vuldb.com/?id.313610\", \"name\": \"VDB-313610 | CodeMirror Markdown Mode markdown.js redos\", \"tags\": [\"vdb-entry\", \"technical-description\"]}, {\"url\": \"https://vuldb.com/?ctiid.313610\", \"name\": \"VDB-313610 | CTI Indicators (IOB, IOC, TTP, IOA)\", \"tags\": [\"signature\", \"permissions-required\"]}, {\"url\": \"https://vuldb.com/?submit.598875\", \"name\": \"Submit #598875 | codemirror codemirror5 \u003c=5.17.0 Inefficient Regular Expression Complexity\", \"tags\": [\"third-party-advisory\"]}, {\"url\": \"https://github.com/codemirror/codemirror5/issues/7128\", \"tags\": [\"exploit\", \"issue-tracking\"]}], \"descriptions\": [{\"lang\": \"en\", \"value\": \"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.\\\"\"}, {\"lang\": \"de\", \"value\": \"In CodeMirror up to 5.65.20 wurde eine Schwachstelle gefunden. Hierbei geht es um eine nicht exakt ausgemachte Funktion der Datei mode/markdown/markdown.js der Komponente Markdown Mode. Durch Beeinflussen mit unbekannten Daten kann eine inefficient regular expression complexity-Schwachstelle ausgenutzt werden. Die Umsetzung des Angriffs kann dabei \\u00fcber das Netzwerk erfolgen. Der Exploit steht zur \\u00f6ffentlichen Verf\\u00fcgung. Das Problem kann durch ein Upgrade auf Version 6.0 adressiert werden. Als bestm\\u00f6gliche Massnahme wird das Einspielen eines Upgrades empfohlen.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-1333\", \"description\": \"Inefficient Regular Expression Complexity\"}]}, {\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-400\", \"description\": \"Resource Consumption\"}]}], \"providerMetadata\": {\"orgId\": \"1af790b2-7ee1-4545-860a-a788eba489b5\", \"shortName\": \"VulDB\", \"dateUpdated\": \"2025-09-29T13:48:37.784Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2025-6493\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-09-29T13:48:37.784Z\", \"dateReserved\": \"2025-06-22T06:17:29.313Z\", \"assignerOrgId\": \"1af790b2-7ee1-4545-860a-a788eba489b5\", \"datePublished\": \"2025-06-22T22:00:10.483Z\", \"assignerShortName\": \"VulDB\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…