# CVE-2020-7760: Regular Expression Denial of Service (ReDoS)

- Severity: Medium 5.3 (CVSS:3.1, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.93%, higher than 92% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 7 links below, marked "exploit"
- Published: 2020-10-30T11:10:32.942Z
- Modified: 2026-06-17T03:25:23.800Z
- Also known as: GHSA-4gw3-8f77-f72c
- Weaknesses: CWE-400
- Assigned by: snyk

## 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|/*.*?*/)*

(As written by CVE List.)

## Affected

- codemirror: from unspecified before 5.58.2
- org.apache.marmotta.webjars:codemirror: from unspecified before 5.58.2
- codemirror (npm): before 5.58.2
- codemirror codemirror: before 5.58.2
- oracle application_express: before 20.2
- oracle enterprise_manager_express_user_interface: 19c
- oracle essbase: 21.2
- oracle hyperion_data_relationship_management: before 11.2.9.0
- oracle spatial_studio: before 19.1.0

## Every score

- snyk: CVSS:3.1 5.3 Medium `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`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-CODEMIRROR-1016937> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1024445> (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-JAVA-ORGWEBJARSBOWERGITHUBCODEMIRROR-1024448> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1024449> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEMARMOTTAWEBJARS-1024450> (exploit, third-party-advisory, web)
- <https://github.com/codemirror/CodeMirror/commit/55d0333907117c9231ffdf555ae8824705993bbb> (patch, third-party-advisory, web)
- <https://www.debian.org/security/2020/dsa-4789> (third-party-advisory, vendor-advisory, web)
- <https://www.oracle.com/security-alerts/cpuApr2021.html> (patch, third-party-advisory, web)
- <https://www.oracle.com//security-alerts/cpujul2021.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)

## Sources

- CVE List: [CVE-2020-7760](https://www.cve.org/CVERecord?id=CVE-2020-7760), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-4gw3-8f77-f72c](https://github.com/advisories/GHSA-4gw3-8f77-f72c), CC-BY-4.0, modified 2025-01-14
- NVD: [CVE-2020-7760](https://nvd.nist.gov/vuln/detail/CVE-2020-7760), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-7760 · Whole record: https://cve.day/CVE-2020-7760.json · Rebuilt by cve.day 2026-11-25T22:57:55.517Z
