CVE catalog

CVE-2020-7760

codemirror-js: CVE-2020-7760

[CVE catalog]

Severity
Medium
Published
Source
[NVD] · [CVE record]
EPSS
5.30% · Oct 25, 2026

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

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiancodemirror-jssid5.65.20+~cs5.83.25-1fixed
Debiancodemirror-jsforky5.65.20+~cs5.83.25-1fixed
Debiancodemirror-jstrixie5.65.0+~cs5.83.9-3fixed
Debiancodemirror-jsbookworm5.65.0+~cs5.83.9-2fixed
Ubuntucodemirror-js16.045.4.0-1vulnerable
Ubuntucodemirror-js18.045.4.0-1vulnerable
Ubuntucodemirror-js18.045.19.0-1vulnerable
Ubuntucodemirror-js20.045.43.0-1vulnerable
Ubuntucodemirror-js20.045.49.2-1vulnerable
Ubuntucodemirror-js20.045.50.2-1vulnerable
Ubuntucodemirror-js20.045.51.0-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiancodemirror-jssourcesid5.58.2+~cs0.23.101-1not yet assignedNot reportedNot reported
Debiancodemirror-jssourceforky5.58.2+~cs0.23.101-1not yet assignedNot reportedNot reported
Debiancodemirror-jssourcetrixie5.58.2+~cs0.23.101-1not yet assignedNot reportedNot reported
Debiancodemirror-jssourcebookworm5.58.2+~cs0.23.101-1not yet assignedNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [codemirror-js]

    Details (2)
    • 5.65.0+~cs5.83.9-2 · all · bookworm

      Fixed · Fixed: 5.58.2+~cs0.23.101-1

      dsa · codemirror-js · debian · bookworm; dsa · codemirror-js · debian · 12

    • 5.65.0+~cs5.83.9-2 · all · bookworm

      Fixed · Fixed: 5.58.2+~cs0.23.101-1

      dsa · codemirror-js · debian · bookworm; dsa · codemirror-js · debian · 12

[Debian 13 (Trixie)]

  • Source package: [codemirror-js]

    Details (2)
    • 5.65.0+~cs5.83.9-3 · all · trixie

      Fixed · Fixed: 5.58.2+~cs0.23.101-1

      dsa · codemirror-js · debian · 13

    • 5.65.0+~cs5.83.9-3 · all · trixie

      Fixed · Fixed: 5.58.2+~cs0.23.101-1

      dsa · codemirror-js · debian · 13

Observed:

References