Regular expression denial of service (ReDoS) in codemirror
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-400.
Summary
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|/*.*?*/)*
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | codemirror | before 5.58.2 | 5.58.2 | Patch available | CNA |
| — | org.apache.marmotta.webjars:codemirror | before 5.58.2 | 5.58.2 | Patch available | CNA |
| — | codemirror (npm) | before 5.58.2 | 5.58.2 | Patch available | GHSA-4gw3-8f77-f72c |
- codemirror Vendor— Affected before 5.58.2 Fixed in 5.58.2 Patch available CNA
- org.apache.marmotta.webjars:codemirror Vendor— Affected before 5.58.2 Fixed in 5.58.2 Patch available CNA
- codemirror (npm) Vendor— Affected before 5.58.2 Fixed in 5.58.2 Patch available GHSA-4gw3-8f77-f72c
CPE configurations NVD · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:codemirror:codemirror:*:*:*:*:*:*:*:* | before 5.58.2 | Vulnerable | Codemirror |
| cpe:2.3:a:oracle:application_express:*:*:*:*:*:*:*:* | before 20.2 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:enterprise_manager_express_user_interface:19c:*:*:*:*:*:*:* | 19c | Vulnerable | Oracle |
| cpe:2.3:a:oracle:essbase:21.2:*:*:*:*:*:*:* | 21.2 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:hyperion_data_relationship_management:*:*:*:*:*:*:*:* | before 11.2.9.0 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:spatial_studio:*:*:*:*:*:*:*:* | before 19.1.0 | Vulnerable | Oracle |
- cpe:2.3:a:codemirror:codemirror:*:*:*:*:*:*:*:* Versions before 5.58.2 Vulnerable ·Codemirror
- cpe:2.3:a:oracle:application_express:*:*:*:*:*:*:*:* Versions before 20.2 Vulnerable ·Oracle
- cpe:2.3:a:oracle:enterprise_manager_express_user_interface:19c:*:*:*:*:*:*:* Versions 19c Vulnerable ·Oracle
- cpe:2.3:a:oracle:essbase:21.2:*:*:*:*:*:*:* Versions 21.2 Vulnerable ·Oracle
- cpe:2.3:a:oracle:hyperion_data_relationship_management:*:*:*:*:*:*:*:* Versions before 11.2.9.0 Vulnerable ·Oracle
- cpe:2.3:a:oracle:spatial_studio:*:*:*:*:*:*:*:* Versions before 19.1.0 Vulnerable ·Oracle
Remediation
- Fix · CNA codemirror Fixed in 5.58.2
- Fix · CNA org.apache.marmotta.webjars:codemirror Fixed in 5.58.2
- Fix · GHSA-4gw3-8f77-f72c codemirror (npm) Fixed in 5.58.2 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ansible Tower 3 | Affected | No fix planned: Will not fix |
Not affected: 2 products
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Enterprise 3
Timeline
- 2026-10-02 Threatist record created from CVE-2020-7760
- 2026-10-03 Alias added: GHSA-4gw3-8f77-f72c
References
Patch 4
Sources
- CVE-2020-7760 · CVE Program
- CVE-2020-7760 · NVD
- FIRST EPSS
- GHSA-4gw3-8f77-f72c · GitHub Advisory Database · CC BY 4.0
- CVE-2020-7760 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences