CVE-2020-7760
published medium CVSS 3.1 · 5.3Regular Expression Denial of Service (ReDoS)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | codemirrorunspecified to < 5.58.2 | Affected | Not stated | snyk |
| n/a | — | org.apache.marmotta.webjars:codemirrorunspecified to < 5.58.2 | Affected | Not stated | snyk |
| Debian | buster | codemirror-js | Advisory build | 5.43.0-1+deb10u1 | DSA-4789-1 |
| Ubuntu | focal | codemirror-js | Advisory build | 5.51.0-1ubuntu0.1~esm1 | USN-9135-1 |
| Ubuntu | focal | libjs-codemirror | Advisory build | 5.51.0-1ubuntu0.1~esm1 | USN-9135-1 |
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|/*.*?*/)*
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | codemirror | unspecified to < 5.58.2 (affected · custom) | snyk · cna |
| n/a | org.apache.marmotta.webjars:codemirror | unspecified to < 5.58.2 (affected · custom) | snyk · cna |
Weaknesses
1- Regular Expression Denial of Service (ReDoS)
References
12- https://github.com/codemirror/CodeMirror/commit/55d0333907117c9231ffdf555ae8824705993bbb
- 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
- DSA-4789 https://www.debian.org/security/2020/dsa-4789
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
Provider assertions
2snyk · cna
Regular Expression Denial of Service (ReDoS)
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5824e854a23e7dc229aadbf955ee6df60c4974ea536de4f1e5c08b2dafde19e1
- Ingested
- 23 Sep 2026, 07:51:25 UTC
- Source record
- Official CVE record