logo

CVE-2020-7760 codemirror

Package

Manager: npm
Name: codemirror
Vulnerable Version: >=0 <5.58.2

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

EPSS: 0.0034 pctl0.56031

Details

Regular expression denial of service in codemirror 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|/*.*?*/)*

Metadata

Created: 2021-05-10T18:46:27Z
Modified: 2021-04-21T17:29:09Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-4gw3-8f77-f72c/GHSA-4gw3-8f77-f72c.json
CWE IDs: ["CWE-400"]
Alternative ID: GHSA-4gw3-8f77-f72c
Finding: F002
Auto approve: 1