{"id":"CVE-2020-7760","published":"2020-10-30T11:10:32Z","modified":"2024-09-17T01:06:44Z","title":"Regular Expression Denial of Service (ReDoS)","vendor":null,"product":null,"tier":"tail","description":{"text":"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|/*.*?*/)*","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.05304,"percentile":0.92779,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-CODEMIRROR-1016937","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1024445","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBCOMPONENTS-1024446","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1024447","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBCODEMIRROR-1024448","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1024449","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEMARMOTTAWEBJARS-1024450","tags":["x_refsource_MISC"]},{"url":"https://github.com/codemirror/CodeMirror/commit/55d0333907117c9231ffdf555ae8824705993bbb","tags":["x_refsource_MISC"]},{"url":"https://www.debian.org/security/2020/dsa-4789","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://www.oracle.com/security-alerts/cpuApr2021.html","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["x_refsource_MISC"]}],"priority":{"score":22.3,"factors":[{"name":"EPSS percentile","points":18.56},{"name":"CVSS severity","points":3.71}]},"affectedVersions":[{"vendor":"n/a","product":"codemirror","versions":[">= unspecified, < 5.58.2"]},{"vendor":"n/a","product":"org.apache.marmotta.webjars:codemirror","versions":[">= unspecified, < 5.58.2"]}],"affected":[{"ecosystem":"npm","package":"codemirror","vulnerableRanges":["<5.58.2"],"patched":["5.58.2"],"from":["GHSA-4gw3-8f77-f72c"],"provenance":"source"}],"summary":{"text":"The codemirror package before 5.58.2 (also distributed as org.apache.marmotta.webjars:codemirror before 5.58.2) contains a regular expression in its JavaScript mode, at javascript.js line 129, that is vulnerable to catastrophic backtracking due to the sub-pattern (s|/*.*?*/)*. An attacker who can supply input processed by that JavaScript mode over the network, without authentication or user interaction, can trigger a Regular Expression Denial of Service that causes availability loss.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:01:20Z"},"euvd":{"id":"EUVD-2021-0941","exploited":false,"provenance":"source"}}