Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE-2020-7760 (Medium) detected in codemirror-5.30.0.js, codemirror-5.30.0.tgz - autoclosed #158

Closed
mend-bolt-for-github bot opened this issue Aug 12, 2021 · 2 comments
Labels
Mend: dependency security vulnerability Security vulnerability detected by WhiteSource

Comments

@mend-bolt-for-github
Copy link

CVE-2020-7760 - Medium Severity Vulnerability

Vulnerable Libraries - codemirror-5.30.0.js, codemirror-5.30.0.tgz

codemirror-5.30.0.js

In-browser code editing made bearable

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

Path to dependency file: brackets/src/node_modules/codemirror/mode/rpm/changes/index.html

Path to vulnerable library: /src/node_modules/codemirror/mode/rpm/changes/../../../lib/codemirror.js

Dependency Hierarchy:

  • codemirror-5.30.0.js (Vulnerable Library)
codemirror-5.30.0.tgz

Full-featured in-browser code editor

Library home page: https://registry.npmjs.org/codemirror/-/codemirror-5.30.0.tgz

Path to dependency file: brackets/src/package.json

Path to vulnerable library: /src/node_modules/codemirror/package.json

Dependency Hierarchy:

  • codemirror-5.30.0.tgz (Vulnerable Library)

Found in HEAD commit: 3fa45ae9a1a5190c6d0729a3d4b58907c1ad749e

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

@mend-bolt-for-github mend-bolt-for-github bot added the Mend: dependency security vulnerability Security vulnerability detected by WhiteSource label Aug 12, 2021
@mend-bolt-for-github
Copy link
Author

ℹ️ This issue was automatically closed by WhiteSource because it is a duplicate of an existing issue: #159

1 similar comment
@mend-bolt-for-github
Copy link
Author

ℹ️ This issue was automatically closed by WhiteSource because it is a duplicate of an existing issue: #159

@mend-bolt-for-github mend-bolt-for-github bot changed the title CVE-2020-7760 (Medium) detected in codemirror-5.30.0.js, codemirror-5.30.0.tgz CVE-2020-7760 (Medium) detected in codemirror-5.30.0.js, codemirror-5.30.0.tgz - autoclosed Aug 12, 2021
@mend-bolt-for-github mend-bolt-for-github bot changed the title CVE-2020-7760 (Medium) detected in codemirror-5.30.0.js, codemirror-5.30.0.tgz CVE-2020-7760 (Medium) detected in codemirror-5.30.0.js, codemirror-5.30.0.tgz - autoclosed Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mend: dependency security vulnerability Security vulnerability detected by WhiteSource
Projects
None yet
Development

No branches or pull requests

0 participants