Advisory

GHSA-4gw3-8f77-f72c

Also known as: CVE-2020-7760

Summary

Regular expression denial of service in codemirror

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-05-10 18:46 UTC
Modified
2025-01-14 08:57 UTC

Affected packages and fixes

codemirror

npm · All systems

Affected

  • introduced 0, fixed 5.58.2 (semver)

Fixed versions

5.58.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences