CVE-2020-7760
Regular Expression Denial of Service (ReDoS)
Reported by snyk · Published October 30, 2020
codemirror is fixed in 5.58.2 (npm)
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|/*.*?*/)*
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| codemirror | npm | 5.58.2 |
| application_express | oracle | 20.2 |
| org.apache.marmotta.webjars:codemirror | n/a | 5.58.2 |
| spatial_studio | oracle | 19.1.0 |
| codemirror | n/a | 5.58.2 |
| hyperion_data_relationship_management | oracle | 11.2.9.0 |
| codemirror | codemirror | 5.58.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | codemirror | unspecified |
| n/a | org.apache.marmotta.webjars:codemirror | unspecified |
| n/a | org.apache.marmotta.webjars:codemirror | * |
| n/a | codemirror | * |
| npm | codemirror | 0 |
Timeline
- Oct 30, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Feb 8, 2024 PoC Published
- Mar 9, 2026 Security Advisory (2 in total, the first dated here)
- Jun 17, 2026 CVE Updated
- Aug 29, 2026 Coalition ESS Score
- Oct 31, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-7760
vulnetix vdb fixes CVE-2020-7760
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-7760/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- DSA-4789 vendor-advisoryx_refsource_DEBIAN
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2020-7760 advisory