There is regular Expression Denial of Service (ReDoS) vulnerability in mocha.
It allows cause a denial of service when stripping crafted invalid function definition from strs.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
WS-2021-0638 - High Severity Vulnerability
Vulnerable Libraries - mocha-10.0.0.tgz, mocha-8.4.0.tgz
mocha-10.0.0.tgz
simple, flexible, fun test framework
Library home page: https://registry.npmjs.org/mocha/-/mocha-10.0.0.tgz
Dependency Hierarchy: - mocha-framework-7.20.3.tgz (Root Library) - :x: **mocha-10.0.0.tgz** (Vulnerable Library)
mocha-8.4.0.tgz
simple, flexible, fun test framework
Library home page: https://registry.npmjs.org/mocha/-/mocha-8.4.0.tgz
Path to dependency file: /samples/testing-frameworks/appium/server-side/javascript/webdriver.io/package.json
Path to vulnerable library: /samples/testing-frameworks/appium/server-side/javascript/webdriver.io/node_modules/mocha/package.json
Dependency Hierarchy: - mocha-framework-6.11.0.tgz (Root Library) - :x: **mocha-8.4.0.tgz** (Vulnerable Library)
Found in HEAD commit: 12af4f854b64888df6e4492ecc94e141388e939a
Found in base branch: master
Vulnerability Details
There is regular Expression Denial of Service (ReDoS) vulnerability in mocha. It allows cause a denial of service when stripping crafted invalid function definition from strs.
Publish Date: 2021-09-18
URL: WS-2021-0638
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
Release Date: 2021-09-18
Fix Resolution: mocha - 10.1.0