{"id":"UBUNTU-CVE-2025-6493","details":"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.\"","modified":"2026-11-24T14:55:13.552316616Z","published":"2025-06-22T22:15:00Z","upstream":["CVE-2025-6493"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-6493"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-6493"},{"type":"REPORT","url":"https://github.com/codemirror/codemirror5/issues/7128"},{"type":"REPORT","url":"https://vuldb.com/?ctiid.313610"},{"type":"REPORT","url":"https://vuldb.com/?id.313610"},{"type":"REPORT","url":"https://vuldb.com/?submit.598875"}],"affected":[{"package":{"name":"codemirror-js","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/codemirror-js?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.4.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"5.4.0-1","binary_name":"libjs-codemirror"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6493.json"}},{"package":{"name":"codemirror-js","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/codemirror-js?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.4.0-1","5.19.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libjs-codemirror","binary_version":"5.19.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6493.json"}},{"package":{"name":"codemirror-js","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/codemirror-js?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.43.0-1","5.49.2-1","5.50.2-1","5.51.0-1","5.51.0-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libjs-codemirror","binary_version":"5.51.0-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6493.json"}},{"package":{"name":"codemirror-js","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/codemirror-js?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.59.2+~cs0.23.109-1","5.62.2+~cs5.83.6-1","5.63.3+~cs5.83.9-1","5.65.0+~cs5.83.9-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libjs-codemirror","binary_version":"5.65.0+~cs5.83.9-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6493.json"}},{"package":{"name":"codemirror-js","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/codemirror-js?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.65.0+~cs5.83.9-3"],"ecosystem_specific":{"binaries":[{"binary_name":"libjs-codemirror","binary_version":"5.65.0+~cs5.83.9-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6493.json"}},{"package":{"name":"codemirror-js","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/codemirror-js?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.65.0+~cs5.83.9-3"],"ecosystem_specific":{"binaries":[{"binary_name":"libjs-codemirror","binary_version":"5.65.0+~cs5.83.9-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6493.json"}},{"package":{"name":"codemirror-js","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/codemirror-js?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.65.20+~cs5.83.25-1"],"ecosystem_specific":{"binaries":[{"binary_version":"5.65.20+~cs5.83.25-1","binary_name":"libjs-codemirror"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6493.json"}},{"package":{"name":"codemirror-js","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/codemirror-js?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.65.0+~cs5.83.9-3","5.65.20+~cs5.83.25-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libjs-codemirror","binary_version":"5.65.20+~cs5.83.25-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6493.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"CNA"},{"type":"CVSS_V4","score":"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","source":"CNA"},{"type":"Ubuntu","score":"medium","source":"SELF"}]}