org.webjars.npm:codemirror@5.3.0 vulnerabilities

  • latest version

    5.65.18

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package manager

  • Direct Vulnerabilities

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

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Regular Expression Denial of Service (ReDoS)

    org.webjars.npm: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.npm:codemirror to version 5.58.2 or higher.

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

    org.webjars.npm: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.npm:codemirror to version 5.54.0 or higher.

    [,5.54.0)