CVE-2020-7760 - Medium Severity Vulnerability
Vulnerable Libraries - javascript-5.4.0.js, codemirror-5.4.0.js
javascript-5.4.0.js
In-browser code editing made bearable
Library home page: https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.4.0/mode/javascript/javascript.js
Path to dependency file: /node_modules/chroma-js/docs/libs/codemirror/mode/javascript/index.html
Path to vulnerable library: /node_modules/chroma-js/docs/libs/codemirror/mode/javascript/javascript.js
Dependency Hierarchy:
- ❌ javascript-5.4.0.js (Vulnerable Library)
codemirror-5.4.0.js
In-browser code editing made bearable
Library home page: https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.4.0/codemirror.js
Path to dependency file: /node_modules/chroma-js/docs/libs/codemirror/mode/javascript/index.html
Path to vulnerable library: /node_modules/chroma-js/docs/libs/codemirror/mode/javascript/../../lib/codemirror.js,/node_modules/chroma-js/docs/libs/codemirror/lib/codemirror.js
Dependency Hierarchy:
- ❌ codemirror-5.4.0.js (Vulnerable Library)
Found in HEAD commit: 6b6da833aa3bd0bc4a04b5931212e0ecf31d7235
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-10-30
Fix Resolution: codemirror - 5.58.2
Step up your Open Source Security Game with WhiteSource here
CVE-2020-7760 - Medium Severity Vulnerability
javascript-5.4.0.js
In-browser code editing made bearable
Library home page: https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.4.0/mode/javascript/javascript.js
Path to dependency file: /node_modules/chroma-js/docs/libs/codemirror/mode/javascript/index.html
Path to vulnerable library: /node_modules/chroma-js/docs/libs/codemirror/mode/javascript/javascript.js
Dependency Hierarchy:
codemirror-5.4.0.js
In-browser code editing made bearable
Library home page: https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.4.0/codemirror.js
Path to dependency file: /node_modules/chroma-js/docs/libs/codemirror/mode/javascript/index.html
Path to vulnerable library: /node_modules/chroma-js/docs/libs/codemirror/mode/javascript/../../lib/codemirror.js,/node_modules/chroma-js/docs/libs/codemirror/lib/codemirror.js
Dependency Hierarchy:
Found in HEAD commit: 6b6da833aa3bd0bc4a04b5931212e0ecf31d7235
Found in base branch: master
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
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.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 WhiteSource here