forked from github/code-scanning-javascript-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
Mend: dependency security vulnerabilitySecurity vulnerability detected by WhiteSourceSecurity vulnerability detected by WhiteSource
Description
WS-2020-0042 - High Severity Vulnerability
Vulnerable Library - acorn-5.7.4.tgz
ECMAScript parser
Library home page: https://registry.npmjs.org/acorn/-/acorn-5.7.4.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/acorn/package.json
Dependency Hierarchy:
- standard-4.5.4.tgz (Root Library)
- standard-format-1.6.10.tgz
- esformatter-jsx-2.3.11.tgz
- babel-core-5.8.38.tgz
- regenerator-0.8.40.tgz
- commoner-0.10.8.tgz
- detective-4.7.1.tgz
- ❌ acorn-5.7.4.tgz (Vulnerable Library)
- detective-4.7.1.tgz
- commoner-0.10.8.tgz
- regenerator-0.8.40.tgz
- babel-core-5.8.38.tgz
- esformatter-jsx-2.3.11.tgz
- standard-format-1.6.10.tgz
Found in base branch: main
Vulnerability Details
acorn is vulnerable to REGEX DoS. A regex of the form /[x-\ud800]/u causes the parser to enter an infinite loop. attackers may leverage the vulnerability leading to a Denial of Service since the string is not valid UTF16 and it results in it being sanitized before reaching the parser.
Publish Date: 2020-03-01
URL: WS-2020-0042
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-6chw-6frg-f759
Release Date: 2020-03-01
Fix Resolution (acorn): 6.4.1
Direct dependency fix Resolution (standard): 7.0.0
- Check this box to open an automated fix PR
Metadata
Metadata
Assignees
Labels
Mend: dependency security vulnerabilitySecurity vulnerability detected by WhiteSourceSecurity vulnerability detected by WhiteSource