CVE-2020-7760
HIGH 7.5CVSS 3.1Regular expression denial of service in codemirror
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|/.?/)
- Published
- 30 Oct 2020
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-400
- Also known as
- GHSA-4gw3-8f77-f72c
- Sources
- NVDJSONOSV GHSA-4gw3-8f77-f72cJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | codemirror | codemirrorcpe:2.3:a:codemirror:codemirror:*:*:*:*:*:*:*:* |
< 5.58.2 | 5.58.2 |
| NVD | oracle | application_expresscpe:2.3:a:oracle:application_express:*:*:*:*:*:*:*:* |
< 20.2 | 20.2 |
| NVD | oracle | enterprise_manager_express_user_interfacecpe:2.3:a:oracle:enterprise_manager_express_user_interface:19c:*:*:*:*:*:*:* |
= 19c | |
| NVD | oracle | essbasecpe:2.3:a:oracle:essbase:21.2:*:*:*:*:*:*:* |
= 21.2 | |
| NVD | oracle | hyperion_data_relationship_managementcpe:2.3:a:oracle:hyperion_data_relationship_management:*:*:*:*:*:*:*:* |
< 11.2.9.0 | 11.2.9.0 |
| NVD | oracle | spatial_studiocpe:2.3:a:oracle:spatial_studio:*:*:*:*:*:*:*:* |
< 19.1.0 | 19.1.0 |
| OSV | npm | codemirror | < 5.58.2 | 5.58.2 |
References
- https://github.com/codemirror/CodeMirror/commit/55d0333907117c9231ffdf555ae8824705993bbb · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEMARMOTTAWEBJARS-1024450 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1024449 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1024445 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBCODEMIRROR-1024448 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBCOMPONENTS-1024446 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1024447 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-CODEMIRROR-1016937 · Exploit, Third Party Advisory, WEB
- https://www.debian.org/security/2020/dsa-4789 · Third Party Advisory, WEB
- https://www.oracle.com//security-alerts/cpujul2021.html · Patch, Third Party Advisory, WEB
- https://www.oracle.com/security-alerts/cpuApr2021.html · Patch, Third Party Advisory, WEB
- https://www.oracle.com/security-alerts/cpuapr2022.html · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-7760 · ADVISORY
- https://www.npmjs.com/package/codemirror · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 30 Oct 2020)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 10 May 2021)