Skip to content
OpenAdvisories
Medium · 5.3 CVE-2020-7760 EUVD-2021-0941GHSA-4gw3-8f77-f72c

Regular Expression Denial of Service (ReDoS)

Published Oct 30, 2020 · Updated Sep 17, 2024 · Assigned by snyk

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 products

VendorProductAffectedFixed
— codemirror unspecified – < 5.58.2 5.58.2
— org.apache.marmotta.webjars:codemirror unspecified – < 5.58.2 5.58.2

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 codemirror-js 5.58.2+~cs0.23.101-1 —
Debian 13 codemirror-js 5.58.2+~cs0.23.101-1 —
Debian 12 codemirror-js 5.58.2+~cs0.23.101-1 —
Debian 10 codemirror-js 5.43.0-1+deb10u1 DSA-4789-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS codemirror-js No fix yet —
Ubuntu 18.04 LTS codemirror-js No fix yet —
Ubuntu 16.04 LTS codemirror-js No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm codemirror < 5.58.2 5.58.2 GHSA-4gw3-8f77-f72c

Advisories 5

References