{"id":"UBUNTU-CVE-2020-7760","details":"This affects the package codemirror before 5.58.2; the package org.apache.marmotta.webjars:codemirror before 5.58.2. The vulnerable regular expression is located in https://github.com/codemirror/CodeMirror/blob/cdb228ac736369c685865b122b736cd0d397836c/mode/javascript/javascript.jsL129. The ReDOS vulnerability of the regex is mainly due to the sub-pattern (s|/*.*?*/)*","modified":"2025-10-24T04:48:19Z","published":"2020-10-30T11:15:00Z","upstream":["CVE-2020-7760"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-7760"},{"type":"REPORT","url":"https://github.com/codemirror/CodeMirror/commit/55d0333907117c9231ffdf555ae8824705993bbb"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEMARMOTTAWEBJARS-1024450"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1024449"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1024445"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBCODEMIRROR-1024448"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBCOMPONENTS-1024446"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1024447"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JS-CODEMIRROR-1016937"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-7760"}],"affected":[{"package":{"name":"codemirror-js","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/codemirror-js@5.4.0-1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.4.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libjs-codemirror","binary_version":"5.4.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-7760.json"}},{"package":{"name":"codemirror-js","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/codemirror-js@5.19.0-1?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/2020/UBUNTU-CVE-2020-7760.json"}},{"package":{"name":"codemirror-js","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/codemirror-js@5.51.0-1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.43.0-1","5.49.2-1","5.50.2-1","5.51.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libjs-codemirror","binary_version":"5.51.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-7760.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}