CVE-2020-7760
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|/*.*?*/)*
Severity
MEDIUM
CVSS v3
5.3
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 · source cna
Exploit chance (EPSS)
5.304%
chance of exploitation in the next 30 days
higher than 92.7% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 7
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-400: Uncontrolled Resource Consumption
Timeline
- 2020-10-30Published by the CNA11:10 UTC
- 2021-05-10GitHub advisory published (GHSA-4gw3-8f77-f72c)192 days after publication
Exploit and advisory records
GitHub advisory GHSA-4gw3-8f77-f72c, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm codemirror | before 5.58.2 | 5.58.2 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| codemirror codemirror | before 5.58.2fixed in 5.58.2 | 5.58.2 |
| oracle application_express | before 20.2fixed in 20.2 | 20.2 |
| oracle enterprise_manager_express_user_interface | 19cno fix listed | not listed |
| oracle essbase | 21.2no fix listed | not listed |
| oracle hyperion_data_relationship_management | before 11.2.9.0fixed in 11.2.9.0 | 11.2.9.0 |
| oracle spatial_studio | before 19.1.0fixed in 19.1.0 | 19.1.0 |
References
- https://github.com/codemirror/CodeMirror/commit/55d0333907117c9231ffdf555ae8824705993bbb
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.debian.org/security/2020/dsa-4789
- https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEMARMOTTAWEBJARS-1024450
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1024449
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1024445
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBCODEMIRROR-1024448
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBCOMPONENTS-1024446
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1024447
- https://snyk.io/vuln/SNYK-JS-CODEMIRROR-1016937
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2020-7760'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2020-7760'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2020-7760'curl 'https://api.contrastcyber.com/cve_products/CVE-2020-7760'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).