Name | CVE-2020-7760 |
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|/*.*?*/)* |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DSA-4789-1 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
codemirror-js (PTS) | bullseye | 5.59.2+~cs0.23.109-1 | fixed |
| bookworm | 5.65.0+~cs5.83.9-2 | fixed |
| sid, trixie | 5.65.0+~cs5.83.9-3 | fixed |
The information below is based on the following data on fixed versions.
Notes
[stretch] - codemirror-js <not-affected> (Vulnerable code added later)
https://snyk.io/vuln/SNYK-JS-CODEMIRROR-1016937
https://github.com/codemirror/CodeMirror/commit/55d0333907117c9231ffdf555ae8824705993bbb