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

Timeline

  1. 2020-10-30Published by the CNA11:10 UTC
  2. 2021-05-10GitHub advisory published (GHSA-4gw3-8f77-f72c)192 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-4gw3-8f77-f72c, affected packages:

PackageVulnerable versionsFixed in
npm codemirrorbefore 5.58.25.58.2

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
codemirror codemirrorbefore 5.58.2fixed in 5.58.25.58.2
oracle application_expressbefore 20.2fixed in 20.220.2
oracle enterprise_manager_express_user_interface19cno fix listednot listed
oracle essbase21.2no fix listednot listed
oracle hyperion_data_relationship_managementbefore 11.2.9.0fixed in 11.2.9.011.2.9.0
oracle spatial_studiobefore 19.1.0fixed in 19.1.019.1.0

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources