BryanLaura/Google-api-python-client

CVE-2020-7760 (Medium) detected in javascript-5.55.0.js, codemirror-5.57.0.js - autoclosed

Closed this issue · 3 comments

CVE-2020-7760 - Medium Severity Vulnerability

Vulnerable Libraries - javascript-5.55.0.js, codemirror-5.57.0.js

javascript-5.55.0.js

In-browser code editing made bearable

Library home page: https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.55.0/mode/javascript/javascript.js

Path to vulnerable library: Google-api-python-client/node_modules/puppeteer/.local-chromium/linux-818858/chrome-linux/resources/inspector/third_party/codemirror/package/mode/javascript/javascript.js

Dependency Hierarchy:

  • javascript-5.55.0.js (Vulnerable Library)
codemirror-5.57.0.js

In-browser code editing made bearable

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

Path to vulnerable library: Google-api-python-client/node_modules/puppeteer/.local-chromium/linux-818858/chrome-linux/resources/inspector/third_party/codemirror/package/lib/codemirror.js

Dependency Hierarchy:

  • codemirror-5.57.0.js (Vulnerable Library)

Found in HEAD commit: ae6a04829b0a8cf75c7e5a9868ad7261697fbbc0

Found in base branch: main

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 (5.3)

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: Low

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-07-21

Fix Resolution: codemirror - 5.58.2


Step up your Open Source Security Game with WhiteSource here

This issue is stale because it has been open 60 days with no activity.

✔️ This issue was automatically closed by WhiteSource because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the WhiteSource inventory.

✔️ This issue was automatically closed by WhiteSource because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the WhiteSource inventory.