org.webjars.bower:codemirror@3.21.0 vulnerabilities

  • latest version

    5.58.2

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    4 years ago

  • licenses detected

  • package manager

Direct Vulnerabilities

Known vulnerabilities in the org.webjars.bower:codemirror package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Regular Expression Denial of Service (ReDoS)

org.webjars.bower:codemirror is a versatile text editor implemented in JavaScript for the browser.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). The vulnerable regular expression is located in https://github.com/codemirror/CodeMirror/blob/cdb228ac736369c685865b122b736cd0d397836c/mode/javascript/javascript.js#L129. The ReDOS vulnerability of the regex is mainly due to the sub-pattern (\s|/\*.*?\*/)*

How to fix Regular Expression Denial of Service (ReDoS)?

Upgrade org.webjars.bower:codemirror to version 5.58.2 or higher.

[,5.58.2)
  • L
Regular Expression Denial of Service (ReDoS)

org.webjars.bower:codemirror is a versatile text editor implemented in JavaScript for the browser.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). This regex cx.stream.match(/^([^>]|<.*?>)*>\s*\(/, false) is vulnerable to catastrophic backtracking and can result in regular expression dos.

How to fix Regular Expression Denial of Service (ReDoS)?

Upgrade org.webjars.bower:codemirror to version 5.58.2 or higher.

[0,5.58.2)