Resource Exhaustion Affecting codemirror-js package, versions <5.58.2+~cs0.23.101-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
1.93% (89th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Resource Exhaustion vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIAN12-CODEMIRRORJS-1543864
  • published4 Nov 2020
  • disclosed30 Oct 2020

Introduced: 30 Oct 2020

CVE-2020-7760  (opens in a new tab)
CWE-400  (opens in a new tab)

How to fix?

Upgrade Debian:12 codemirror-js to version 5.58.2+~cs0.23.101-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream codemirror-js package and not the codemirror-js package as distributed by Debian. See How to fix? for Debian:12 relevant fixed versions and status.

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

CVSS Scores

version 3.1