Description
CVE-2020-7662 - High Severity Vulnerability
Vulnerable Library - websocket-extensions-0.1.3.tgz
Generic extension manager for WebSocket connections
Library home page: https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.3.tgz
Path to dependency file: /package.json
Path to vulnerable library: /package.json
Dependency Hierarchy:
- build-angular-0.1100.0-rc.1.tgz (Root Library)
- webpack-dev-server-3.11.0.tgz
- sockjs-0.3.20.tgz
- websocket-driver-0.6.5.tgz
- ❌ websocket-extensions-0.1.3.tgz (Vulnerable Library)
- websocket-driver-0.6.5.tgz
- sockjs-0.3.20.tgz
- webpack-dev-server-3.11.0.tgz
Found in HEAD commit: c6aca37f442da8c55a02d7c53ccc58100ab004f3
Found in base branch: labs/router
Vulnerability Details
websocket-extensions npm module prior to 0.1.4 allows Denial of Service (DoS) via Regex Backtracking. The extension parser may take quadratic time when parsing a header containing an unclosed string parameter value whose content is a repeating two-byte sequence of a backslash and some other character. This could be abused by an attacker to conduct Regex Denial Of Service (ReDoS) on a single-threaded server by providing a malicious payload with the Sec-WebSocket-Extensions header.
Publish Date: 2020-06-02
URL: CVE-2020-7662
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
Suggested Fix
Type: Upgrade version
Origin: GHSA-g78m-2chm-r7qv
Release Date: 2020-06-02
Fix Resolution (websocket-extensions): 0.1.4
Direct dependency fix Resolution (@angular-devkit/build-angular): 0.1100.0
Step up your Open Source Security Game with Mend here