Vulnerability · Published Oct 30, 2020 · Assigned by snyk
CVE-2020-7760Regular Expression Denial of Service (ReDoS)
Medium 5.3
In plain English
A medium-severity security flaw in codemirror. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 5.3% (higher than 93% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)5.3%top 7.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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|/*.*?*/)*
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | codemirror-js | 5.58.2+~cs0.23.101-1 | DEBIAN-CVE-2020-7760 |
| Debian:13 | codemirror-js | 5.58.2+~cs0.23.101-1 | DEBIAN-CVE-2020-7760 |
| Debian:14 | codemirror-js | 5.58.2+~cs0.23.101-1 | DEBIAN-CVE-2020-7760 |
| npm | codemirror | 5.58.2 | GHSA-4gw3-8f77-f72c |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | codemirror | unspecified – before 5.58.2 |
| n/a | org.apache.marmotta.webjars:codemirror | unspecified – before 5.58.2 |
References
- https://snyk.io/vuln/SNYK-JS-CODEMIRROR-1016937 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1024445 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBCOMPONENTS-1024446 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1024447 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBCODEMIRROR-1024448 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1024449 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEMARMOTTAWEBJARS-1024450 x_refsource_MISC
- https://github.com/codemirror/CodeMirror/commit/55d0333907117c9231ffdf555ae8824705993bbb x_refsource_MISC
- DSA-4789 vendor-advisory, x_refsource_DEBIAN
- https://www.oracle.com/security-alerts/cpuApr2021.html x_refsource_MISC
- https://www.oracle.com//security-alerts/cpujul2021.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpuapr2022.html x_refsource_MISC