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|/.?/)
[
{
"events": [
{
"introduced": "0"
},
{
"fixed": "20.2"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "19c"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "21.2"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"fixed": "11.2.9.0"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"fixed": "19.1.0"
}
]
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-7760.json"