Lucene search

K
nodejsAnonymousNODEJS:1702
HistoryMay 10, 2021 - 6:48 p.m.

Regular expression denial of Service

2021-05-1018:48:59
Anonymous
www.npmjs.com
30

0.015 Low

EPSS

Percentile

86.9%

Overview

codemirror before 5.58.2 is vulnerable to a regular expression denial of service.
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|/.?/)

Recommendation

Upgrade to version 5.58.2 or later

References

CPENameOperatorVersion
codemirrorlt5.58.2