KouShenhai/KCloud-Platform-IoT

codemirror-5.27.4.js: 1 vulnerabilities (highest severity is: 7.5)

Closed this issue · 0 comments

Vulnerable Library - codemirror-5.27.4.js

In-browser code editing made bearable

Library home page: https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.27.4/codemirror.js

Path to vulnerable library: /laokou-cloud/laokou-register/src/main/resources/static/console-ui/public/js/codemirror.js

Found in HEAD commit: ef652fd114447a7d5df0fb773f0b2b572fa96dc0

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (codemirror version) Remediation Possible**
CVE-2020-7760 High 7.5 codemirror-5.27.4.js Direct codemirror - 5.58.2

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2020-7760

Vulnerable Library - codemirror-5.27.4.js

In-browser code editing made bearable

Library home page: https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.27.4/codemirror.js

Path to vulnerable library: /laokou-cloud/laokou-register/src/main/resources/static/console-ui/public/js/codemirror.js

Dependency Hierarchy:

  • codemirror-5.27.4.js (Vulnerable Library)

Found in HEAD commit: ef652fd114447a7d5df0fb773f0b2b572fa96dc0

Found in base branch: master

Vulnerability Details

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|/.?/)

Publish Date: 2020-10-30

URL: CVE-2020-7760

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7760

Release Date: 2020-10-30

Fix Resolution: codemirror - 5.58.2

Step up your Open Source Security Game with Mend here