Vulnerability · Published Oct 30, 2020 · Assigned by snyk

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

Medium 5.3

In plain English

A medium-severity security flaw in codemirror. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 5.3% (higher than 93% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)5.3%top 7.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12codemirror-js5.58.2+~cs0.23.101-1DEBIAN-CVE-2020-7760
Debian:13codemirror-js5.58.2+~cs0.23.101-1DEBIAN-CVE-2020-7760
Debian:14codemirror-js5.58.2+~cs0.23.101-1DEBIAN-CVE-2020-7760
npmcodemirror5.58.2GHSA-4gw3-8f77-f72c

Affected products (as reported)

VendorProductVersions
n/a codemirror unspecified – before 5.58.2
n/a org.apache.marmotta.webjars:codemirror unspecified – before 5.58.2

References