Live threats

All CVEs / Codemirror

CVE-2020-7760Codemirror

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
4.9%
probability of exploitation in 30 days · percentile 93
Auth required
No
Published
Oct 30, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Codemirror.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm codemirror < 5.58.2 5.58.2 npm install codemirror@5.58.2

Per OSV / GitHub Advisories (GHSA-4gw3-8f77-f72c). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
codemirrorcodemirror< 5.58.2
oracleapplication_express< 20.2
oracleenterprise_manager_express_user_interface19c
oracleessbase21.2
oraclehyperion_data_relationship_management< 11.2.9.0
oraclespatial_studio< 19.1.0

Official sources

References

Links published by the sources. Open them with care.